You are here

public function ImageTest::testDesaturate in Drupal 9

Same name and namespace in other branches
  1. 8 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 460

Class

ImageTest
Tests the image class.

Namespace

Drupal\Tests\Core\Image

Code

public function testDesaturate() {
  $this
    ->getTestImageForOperation('Desaturate');
  $this->toolkitOperation
    ->expects($this
    ->once())
    ->method('execute')
    ->will($this
    ->returnArgument(0));
  $this->image
    ->desaturate();
}