You are here

public function ToolkitTest::testLoad in Drupal 9

Tests Image's methods.

File

core/tests/Drupal/KernelTests/Core/Image/ToolkitTest.php, line 59

Class

ToolkitTest
Tests the image toolkit.

Namespace

Drupal\KernelTests\Core\Image

Code

public function testLoad() {
  $image = $this
    ->getImage();
  $this
    ->assertInstanceOf(ImageInterface::class, $image);
  $this
    ->assertEquals('test', $image
    ->getToolkitId());
  $this
    ->assertToolkitOperationsCalled([
    'parseFile',
  ]);
}