function ImageEffectsTest::testConvertAvifEffectFallback
Tests the 'image_convert_avif' effect with webp fallback.
File
-
core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php, line 138
Class
- ImageEffectsTest
- Tests image effects.
Namespace
Drupal\Tests\image\KernelCode
public function testConvertAvifEffectFallback() : void {
$this->assertImageEffect([
'convert',
], 'image_convert_avif', [
'extension' => 'webp',
]);
$calls = $this->imageTestGetAllCalls();
$this->assertEquals('webp', $calls['convert'][0][0]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.