public function ImageTest::testIsValid in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 191 - Contains \Drupal\Tests\Core\Image\ImageTest.
Class
- ImageTest
- Tests the image class.
Namespace
Drupal\Tests\Core\ImageCode
public function testIsValid() {
$this
->getTestImage(FALSE);
$this
->assertTrue($this->image
->isValid());
$this
->assertTrue(is_readable($this->image
->getSource()));
}