function RecipeEventsTest::testRecipeAppliedEvent

Same name in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php \Drupal\KernelTests\Core\Recipe\RecipeEventsTest::testRecipeAppliedEvent()

File

core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php, line 51

Class

RecipeEventsTest
@group Recipe

Namespace

Drupal\KernelTests\Core\Recipe

Code

public function testRecipeAppliedEvent() : void {
    $recipe = Recipe::createFromDirectory('core/tests/fixtures/recipes/recipe_include');
    RecipeRunner::processRecipe($recipe);
    $this->assertSame([
        'Install node with config',
        'Recipe include',
    ], $this->recipesApplied);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.