public function ImageEffectsTest::testDesaturateEffect in Drupal 9
Tests the 'image_desaturate' effect.
File
- core/
modules/ image/ tests/ src/ Kernel/ ImageEffectsTest.php, line 166
Class
- ImageEffectsTest
- Tests image effects.
Namespace
Drupal\Tests\image\KernelCode
public function testDesaturateEffect() {
$this
->assertImageEffect([
'desaturate',
], 'image_desaturate', []);
// Check the parameters.
$calls = $this
->imageTestGetAllCalls();
// No parameters were passed.
$this
->assertEmpty($calls['desaturate'][0]);
}