function RecipeConfiguratorTest::testIncludedRecipeLoader
Same name in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Recipe/RecipeConfiguratorTest.php \Drupal\KernelTests\Core\Recipe\RecipeConfiguratorTest::testIncludedRecipeLoader()
Tests that RecipeConfigurator can load recipes.
@testWith ["install_two_modules", "Install two modules"] ["recipe_include", "Recipe include"]
@covers ::getIncludedRecipe
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeConfiguratorTest.php, line 60
Class
- RecipeConfiguratorTest
- @coversDefaultClass \Drupal\Core\Recipe\RecipeConfigurator @group Recipe
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.