function ImageTest::testDesaturate
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testDesaturate()
- 8.9.x core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testDesaturate()
- 11.x core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testDesaturate()
Tests \Drupal\Core\Image\Image::desaturate().
File
-
core/
tests/ Drupal/ Tests/ Core/ Image/ ImageTest.php, line 462
Class
- ImageTest
- Tests the image class.
Namespace
Drupal\Tests\Core\ImageCode
public function testDesaturate() : void {
$this->getTestImageForOperation('Desaturate');
$this->toolkitOperation
->expects($this->once())
->method('execute')
->willReturnArgument(0);
$this->image
->desaturate();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.