2
0
forked from Wavyzz/dolibarr

Fix regression

This commit is contained in:
Laurent Destailleur
2022-12-31 16:48:40 +01:00
parent 7d433e43fa
commit 65a2093cd1
2 changed files with 8 additions and 7 deletions

View File

@@ -443,10 +443,11 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
$this->assertEquals('tablet', $tmp['layout']);
$this->assertEquals('iphone', $tmp['phone']);
//iPad
//Lynx
$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('2.8.8', $tmp['browserversion']);
$this->assertEquals('unknown', $tmp['browseros']);
$this->assertEquals('classic', $tmp['layout']);
}