function RecipeFinderTest::testInvalidRecipesThrow
Tests that invalid recipes throw an exception by default.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeFinderTest.php, line 153
Class
- RecipeFinderTest
- Tests the recipe finder.
Namespace
Drupal\KernelTests\Core\RecipeCode
public function testInvalidRecipesThrow() : void {
$finder = new Finder($this->root . '/core/tests/fixtures/recipes');
// This is a parse error, so we don't care about the exception type.
$this->expectExceptionMessage('foo: !php/enum Drupal\\config_enum_test\\DoesNotExistEnumValue::No');
iterator_to_array($finder);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.