2
0
forked from Wavyzz/dolibarr

Fix phpunit warning

This commit is contained in:
Laurent Destailleur
2023-09-10 15:16:46 +02:00
parent 23876058a1
commit ad9e11542c

View File

@@ -1117,12 +1117,12 @@ class FunctionsLibTest extends PHPUnit\Framework\TestCase
{
$s=img_picto('title', 'user');
print __METHOD__." s=".$s."\n";
$this->assertContains('fa-user', $s, 'testImgPicto1');
$this->assertStringContainsStringIgnoringCase('fa-user', $s, 'testImgPicto1');
$s=img_picto('title', 'img.png', 'style="float: right"', 0);
print __METHOD__." s=".$s."\n";
$this->assertContains('theme', $s, 'testImgPicto2');
$this->assertContains('style="float: right"', $s, 'testImgPicto2');
$this->assertStringContainsStringIgnoringCase('theme', $s, 'testImgPicto2');
$this->assertStringContainsStringIgnoringCase('style="float: right"', $s, 'testImgPicto2');
$s=img_picto('title', '/fullpath/img.png', '', 1);
print __METHOD__." s=".$s."\n";