public function RecipeTestBase::setUp in Recipe 8.2
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ RecipeTestBase.php, line 32
Class
- RecipeTestBase
- Provides setup and helper methods for recipe module tests.
Namespace
Drupal\Tests\recipe\FunctionalCode
public function setUp() : void {
parent::setUp();
$this
->drupalPlaceBlock('system_breadcrumb_block');
// Create and log in the admin user with Recipe content permissions.
$permissions = [
'create recipe content',
'edit any recipe content',
'administer site configuration',
'view ingredient',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
}