You are here

function ToolkitTest::testLoad in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Image/ToolkitTest.php \Drupal\system\Tests\Image\ToolkitTest::testLoad()

Tests Image's methods.

File

core/modules/system/src/Tests/Image/ToolkitTest.php, line 31
Contains \Drupal\system\Tests\Image\ToolkitTest.

Class

ToolkitTest
Tests image toolkit functions.

Namespace

Drupal\system\Tests\Image

Code

function testLoad() {
  $image = $this
    ->getImage();
  $this
    ->assertTrue(is_object($image), 'Returned an object.');
  $this
    ->assertEqual($image
    ->getToolkitId(), 'test', 'Image had toolkit set.');
  $this
    ->assertToolkitOperationsCalled(array(
    'parseFile',
  ));
}