function ImageTest::testConvert
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testConvert()
- 8.9.x core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testConvert()
- 10 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testConvert()
Tests \Drupal\Core\Image\Image::convert().
File
-
core/
tests/ Drupal/ Tests/ Core/ Image/ ImageTest.php, line 419
Class
- ImageTest
- Tests the image class.
Namespace
Drupal\Tests\Core\ImageCode
public function testConvert() : void {
$this->getTestImageForOperation('Convert');
$this->toolkitOperation
->expects($this->once())
->method('execute')
->willReturnArgument(0);
$ret = $this->image
->convert('png');
$this->assertEquals('png', $ret['extension']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.