function FinderTest::testExceptionIfNoUuid
Tests that files without UUIDs will raise an exception.
File
-
core/
tests/ Drupal/ Tests/ Core/ DefaultContent/ FinderTest.php, line 79
Class
- FinderTest
- Tests Finder.
Namespace
Drupal\Tests\Core\DefaultContentCode
public function testExceptionIfNoUuid() : void {
$this->expectException(ImportException::class);
$this->expectExceptionMessageMatches("#/no-uuid\\.yml does not have a UUID\\.\$#");
new Finder(__DIR__ . '/../../../../fixtures/default_content_broken');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.