function ToolkitTest::testLoad
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Image/ToolkitTest.php \Drupal\KernelTests\Core\Image\ToolkitTest::testLoad()
- 10 core/tests/Drupal/KernelTests/Core/Image/ToolkitTest.php \Drupal\KernelTests\Core\Image\ToolkitTest::testLoad()
- 11.x core/tests/Drupal/KernelTests/Core/Image/ToolkitTest.php \Drupal\KernelTests\Core\Image\ToolkitTest::testLoad()
Tests Image's methods.
File
-
core/
tests/ Drupal/ FunctionalTests/ Image/ ToolkitTest.php, line 33
Class
- ToolkitTest
- Tests image toolkit functions.
Namespace
Drupal\FunctionalTests\ImageCode
public function testLoad() {
$image = $this->getImage();
$this->assertIsObject($image);
$this->assertEqual($image->getToolkitId(), 'test', 'Image had toolkit set.');
$this->assertToolkitOperationsCalled([
'parseFile',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.