function RecipeCommandTest::testEnumInRecipeAction

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/FunctionalTests/Core/Recipe/RecipeCommandTest.php \Drupal\FunctionalTests\Core\Recipe\RecipeCommandTest::testEnumInRecipeAction()

Test installing a module with recipe action 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 132

Class

RecipeCommandTest
Tests recipe command.

Namespace

Drupal\FunctionalTests\Core\Recipe

Code

public function testEnumInRecipeAction() : void {
  $this->applyRecipe('core/tests/fixtures/recipes/enum_action_test');
  $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.