Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetType()
- 9 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 180
Class
- ImageTest
- Tests the image class.
Namespace
Drupal\Tests\Core\ImageCode
public function testGetType() {
$this
->getTestImage(FALSE);
$this
->assertEquals(IMAGETYPE_PNG, $this->image
->getToolkit()
->getType());
}