mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-05 16:42:53 +01:00
Fix phpunit
This commit is contained in:
@@ -1194,19 +1194,19 @@ class FunctionsLibTest extends CommonClassTest
|
||||
|
||||
$object->country_code = 'FR';
|
||||
$phone = dol_print_phone('1234567890', $object->country_code);
|
||||
$this->assertEquals('<span style="margin-right: 10px;">12 34 56 78 90</span>', $phone, 'Phone for FR 1');
|
||||
$this->assertEquals('<span style="paddingright">12 34 56 78 90</span>', $phone, 'Phone for FR 1');
|
||||
|
||||
$object->country_code = 'FR';
|
||||
$phone = dol_print_phone('1234567890', $object->country_code, 0, 0, 0, '');
|
||||
$this->assertEquals('<span style="margin-right: 10px;">1234567890</span>', $phone, 'Phone for FR 2');
|
||||
$this->assertEquals('<span style="paddingright">1234567890</span>', $phone, 'Phone for FR 2');
|
||||
|
||||
$object->country_code = 'FR';
|
||||
$phone = dol_print_phone('1234567890', $object->country_code, 0, 0, 0, ' ');
|
||||
$this->assertEquals('<span style="margin-right: 10px;">12 34 56 78 90</span>', $phone, 'Phone for FR 3');
|
||||
$this->assertEquals('<span style="paddingright">12 34 56 78 90</span>', $phone, 'Phone for FR 3');
|
||||
|
||||
$object->country_code = 'CA';
|
||||
$phone = dol_print_phone('1234567890', $object->country_code, 0, 0, 0, ' ');
|
||||
$this->assertEquals('<span style="margin-right: 10px;">(123) 456-7890</span>', $phone, 'Phone for CA 1');
|
||||
$this->assertEquals('<span style="paddingright">(123) 456-7890</span>', $phone, 'Phone for CA 1');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user