public function ImageEffectsTest::testDesaturateEffect in Drupal 8
Test the image_desaturate_effect() function.
File
- core/
modules/ image/ tests/ src/ Functional/ ImageEffectsTest.php, line 147
Class
- ImageEffectsTest
- Tests that the image effects pass parameters to the toolkit correctly.
Namespace
Drupal\Tests\image\FunctionalCode
public function testDesaturateEffect() {
$this
->assertImageEffect('image_desaturate', []);
$this
->assertToolkitOperationsCalled([
'desaturate',
]);
// Check the parameters.
$calls = $this
->imageTestGetAllCalls();
$this
->assertCount(0, $calls['desaturate'][0], 'No parameters were passed.');
}