function ConfigActionValidationTest::testConfigActionDependenciesAreValidated
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Recipe/ConfigActionValidationTest.php \Drupal\KernelTests\Core\Recipe\ConfigActionValidationTest::testConfigActionDependenciesAreValidated()
- 10 core/tests/Drupal/KernelTests/Core/Recipe/ConfigActionValidationTest.php \Drupal\KernelTests\Core\Recipe\ConfigActionValidationTest::testConfigActionDependenciesAreValidated()
Tests validating that config actions' dependencies are present.
Tests that the all of the config listed in a recipe's config actions are provided by extensions that will be installed by the recipe, or one of its dependencies (no matter how deeply nested).
Attributes
#[TestWith([
"direct_dependency",
])]
#[TestWith([
"indirect_dependency_one_level_down",
])]
#[TestWith([
"indirect_dependency_two_levels_down",
])]
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ ConfigActionValidationTest.php, line 111
Class
- ConfigActionValidationTest
- Tests Config Action Validation.
Namespace
Drupal\KernelTests\Core\RecipeCode
public function testConfigActionDependenciesAreValidated(string $name) : void {
Recipe::createFromDirectory("core/tests/fixtures/recipes/config_actions_dependency_validation/{$name}");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.