You are here

public function ImageTest::testGetHeight in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetHeight()
  2. 10 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetHeight()

Tests \Drupal\Core\Image\Image::getHeight().

File

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

Class

ImageTest
Tests the image class.

Namespace

Drupal\Tests\Core\Image

Code

public function testGetHeight() {
  $this
    ->getTestImage(FALSE);
  $this
    ->assertEquals(100, $this->image
    ->getHeight());
}