function ImageTest::testGetType

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetType()
  2. 10 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetType()
  3. 11.x core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetType()

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

File

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

Class

ImageTest
Tests the image class.

Namespace

Drupal\Tests\Core\Image

Code

public function testGetType() {
    $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.