You are here

public function ToolkitTest::testLoad in Drupal 8

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',
  ]);
}