function GenericRecipeTestBase::testRecipeCanBeApplied

Tests that this recipe can be applied multiple times.

File

core/modules/system/tests/src/Functional/Recipe/GenericRecipeTestBase.php, line 48

Class

GenericRecipeTestBase
Runs a series of generic tests for one recipe.

Namespace

Drupal\Tests\system\Functional\Recipe

Code

public function testRecipeCanBeApplied() : void {
    $this->setUpCurrentUser(admin: TRUE);
    $this->doApply();
    // Apply the recipe again to prove that it is idempotent.
    $this->doApply();
}

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