function RecipeCommandTest::testConstantInRecipeAction
Same name and namespace in other branches
- main core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeCommandTest.php \Drupal\FunctionalTests\Core\Recipe\RecipeCommandTest::testConstantInRecipeAction()
Test installing a module with recipe action using a constant from module.
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 144
Class
- RecipeCommandTest
- Tests recipe command.
Namespace
Drupal\FunctionalTests\Core\RecipeCode
public function testConstantInRecipeAction() : void {
$this->applyRecipe('core/tests/fixtures/recipes/constant_action_test');
$this->assertSame('bar', $this->config('config_constant_test.settings')
->get('foo'));
$this->assertSame(EnumValue::No, $this->config('config_enum_test.settings')
->get('foo'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.