function ImageTest::testGetWidth

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetWidth()
  2. 10 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testGetWidth()
  3. 11.x 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 156

Class

ImageTest
Tests the image class.

Namespace

Drupal\Tests\Core\Image

Code

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

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