function RecipeTest::testImplicitlyRequiredModule

Same name and namespace in other branches
  1. 11.x 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[[api-linebreak]] @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.