Test
This commit is contained in:
parent
3c637fa1ad
commit
1b62ab73d7
@ -163,9 +163,9 @@ class ImagesLibTest extends PHPUnit\Framework\TestCase
|
||||
global $conf;
|
||||
|
||||
$file=dirname(__FILE__).'/img250x20.png';
|
||||
$filetarget=$conf->admin->dir_temp.'/img250x20.webp';
|
||||
$filetarget=$conf->admin->dir_temp.'/img250x20.jpg';
|
||||
$result = dol_imageResizeOrCrop($file, 0, 0, 0, 0, 0, $filetarget);
|
||||
print __METHOD__." result=".$result."\n";
|
||||
$this->assertEquals($filetarget, $result, 'Failed to convert into webp');
|
||||
$this->assertEquals($filetarget, $result, 'Failed to convert into '.$filetarget);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user