function RecipeTest::testImplicitlyRequiredModule

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

File

core/tests/Drupal/KernelTests/Core/Recipe/RecipeTest.php, line 86

Class

RecipeTest
@coversDefaultClass \Drupal\Core\Recipe\Recipe @group Recipe

Namespace

Drupal\KernelTests\Core\Recipe

Code

public function testImplicitlyRequiredModule() : void {
    $this->disableModules([
        'user',
    ]);
    $recipe = $this->createRecipe([
        'name' => 'Actions on config from required module',
        'config' => [
            'actions' => [
                'user.role.authenticated' => [
                    'grantPermission' => 'access administration pages',
                ],
            ],
        ],
    ]);
    $this->assertIsObject($recipe);
}

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