function CoreRecipesTest::testApplyRecipe
Same name in other branches
- 10 core/tests/Drupal/FunctionalTests/Core/Recipe/CoreRecipesTest.php \Drupal\FunctionalTests\Core\Recipe\CoreRecipesTest::testApplyRecipe()
Test the recipe apply.
@dataProvider providerApplyRecipe
Parameters
string $path: The path to the recipe file.
File
-
core/
tests/ Drupal/ FunctionalTests/ Core/ Recipe/ CoreRecipesTest.php, line 67
Class
- CoreRecipesTest
- Tests applying all core-provided recipes on top of the Empty profile.
Namespace
Drupal\FunctionalTests\Core\RecipeCode
public function testApplyRecipe(string $path) : void {
$this->setUpCurrentUser(admin: TRUE);
$this->applyRecipe($path);
// Apply the recipe again to prove that it is idempotent.
$this->applyRecipe($path);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.