public function ImageTest::testIsValid in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Image/ImageTest.php \Drupal\Tests\Core\Image\ImageTest::testIsValid()
Tests \Drupal\Core\Image\Image::isValid().
File
- core/
tests/ Drupal/ Tests/ Core/ Image/ ImageTest.php, line 188
Class
- ImageTest
- Tests the image class.
Namespace
Drupal\Tests\Core\ImageCode
public function testIsValid() {
$this
->getTestImage(FALSE);
$this
->assertTrue($this->image
->isValid());
$this
->assertFileIsReadable($this->image
->getSource());
}