function RecipeConfiguratorTest::testIncludedRecipeLoader
Same name and namespace in other branches
- 10 core/tests/Drupal/KernelTests/Core/Recipe/RecipeConfiguratorTest.php \Drupal\KernelTests\Core\Recipe\RecipeConfiguratorTest::testIncludedRecipeLoader()
Tests that RecipeConfigurator can load recipes.
@legacy-covers ::getIncludedRecipe
Attributes
#[TestWith([
"install_two_modules",
"Install two modules",
])]
#[TestWith([
"recipe_include",
"Recipe include",
])]
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeConfiguratorTest.php, line 66
Class
Namespace
Drupal\KernelTests\Core\RecipeCode
public function testIncludedRecipeLoader(string $recipe, string $name) : void {
$recipe = RecipeConfigurator::getIncludedRecipe('core/tests/fixtures/recipes', $recipe);
$this->assertSame($name, $recipe->name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.