function ToolkitTest::testLoad

Same name and namespace in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Image/ToolkitTest.php \Drupal\KernelTests\Core\Image\ToolkitTest::testLoad()
  2. 11.x core/tests/Drupal/KernelTests/Core/Image/ToolkitTest.php \Drupal\KernelTests\Core\Image\ToolkitTest::testLoad()
  3. 9 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\Image

Code

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.