function RecipeDiscoveryTest::testRecipeDiscovery
Same name in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Recipe/RecipeDiscoveryTest.php \Drupal\KernelTests\Core\Recipe\RecipeDiscoveryTest::testRecipeDiscovery()
Tests that recipe discovery can find recipes.
@testWith ["install_two_modules", "Install two modules"] ["recipe_include", "Recipe include"]
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeDiscoveryTest.php, line 23
Class
- RecipeDiscoveryTest
- @coversDefaultClass \Drupal\Core\Recipe\RecipeDiscovery @group Recipe
Namespace
Drupal\KernelTests\Core\RecipeCode
public function testRecipeDiscovery(string $recipe, string $name) : void {
$discovery = new RecipeDiscovery('core/tests/fixtures/recipes');
$recipe = $discovery->getRecipe($recipe);
$this->assertSame($name, $recipe->name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.