function ImageTest::testGetType

Tests \Drupal\Core\Image\Image::getToolkit()->getType().

File

core/tests/Drupal/Tests/Core/Image/ImageTest.php, line 183

Class

ImageTest
Tests the image class.

Namespace

Drupal\Tests\Core\Image

Code

public function testGetType() : void {
  $this->getTestImage(FALSE);
  $this->assertEquals(IMAGETYPE_PNG, $this->image
    ->getToolkit()
    ->getType());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.