function RecipeCommandTest::testEnumInRecipeConfig
Same name and namespace in other branches
- main core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeCommandTest.php \Drupal\FunctionalTests\Core\Recipe\RecipeCommandTest::testEnumInRecipeConfig()
Test installing a module with recipe config using an enum 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 120
Class
- RecipeCommandTest
- Tests recipe command.
Namespace
Drupal\FunctionalTests\Core\RecipeCode
public function testEnumInRecipeConfig() : void {
$this->applyRecipe('core/tests/fixtures/recipes/enum_config_test');
$this->assertSame(EnumValue::Yes, $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.