2
0
forked from Wavyzz/dolibarr

Fix warning qodana

This commit is contained in:
Laurent Destailleur
2022-12-31 13:44:11 +01:00
parent e977a95cc7
commit 8774f4f092
25 changed files with 44 additions and 31 deletions

View File

@@ -442,6 +442,13 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
$this->assertEquals('ios', $tmp['browseros']);
$this->assertEquals('tablet', $tmp['layout']);
$this->assertEquals('iphone', $tmp['phone']);
//iPad
$user_agent = 'Lynx/2.8.8dev.3 libwwwFM/2.14 SSLMM/1.4.1';
$tmp=getBrowserInfo($user_agent);
$this->assertEquals('lynxlinks', $tmp['browsername']);
$this->assertEquals('unknown', $tmp['browseros']);
$this->assertEquals('classic', $tmp['layout']);
}