function ToolkitTestBase::getImage
Sets up an image with the custom toolkit.
Return value
\Drupal\Core\Image\ImageInterface The image object.
File
-
core/
tests/ Drupal/ FunctionalTests/ Image/ ToolkitTestBase.php, line 81
Class
- ToolkitTestBase
- Base class for image manipulation testing.
Namespace
Drupal\FunctionalTests\ImageCode
protected function getImage() {
$image = $this->imageFactory
->get($this->file, 'test');
$this->assertTrue($image->isValid(), 'Image file was parsed.');
return $image;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.