function ImageTest::testGetFileSize

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

Tests \Drupal\Core\Image\Image::getFileSize.

File

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

Class

ImageTest
Tests the image class.

Namespace

Drupal\Tests\Core\Image

Code

public function testGetFileSize() : void {
    $this->getTestImage(FALSE);
    $this->assertEquals(3905, $this->image
        ->getFileSize());
}

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