You are here

public function ImageTest::testGetWidth in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetWidth()

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

File

core/tests/Drupal/Tests/Core/Image/ImageTest.php, line 159
Contains \Drupal\Tests\Core\Image\ImageTest.

Class

ImageTest
Tests the image class.

Namespace

Drupal\Tests\Core\Image

Code

public function testGetWidth() {
  $this
    ->getTestImage(FALSE);
  $this
    ->assertEquals(88, $this->image
    ->getWidth());
}