function RecipeCommandTest::testBrokenEnumInRecipeAction
Same name and namespace in other branches
- main core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeCommandTest.php \Drupal\FunctionalTests\Core\Recipe\RecipeCommandTest::testBrokenEnumInRecipeAction()
Test installing a module with recipe action using a broken enum.
This test is a functional test because all code is autoloadable in tests. Using the CLI command means that we test loading the recipe prior to the module being installed.
File
-
core/
tests/ Drupal/ FunctionalTests/ Core/ Recipe/ RecipeCommandTest.php, line 157
Class
- RecipeCommandTest
- Tests recipe command.
Namespace
Drupal\FunctionalTests\Core\RecipeCode
public function testBrokenEnumInRecipeAction() : void {
$process = $this->applyRecipe('core/tests/fixtures/recipes/broken_enum_action_test', 1);
$output = trim(preg_replace('/\\s+/', ' ', $process->getErrorOutput()));
$this->assertStringContainsString('The enum "Drupal\\config_enum_test\\DoesNotExistEnumValue" is not defined', $output);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.