RecipeTestBase.php in Recipe 8.2
File
tests/src/Functional/RecipeTestBase.php
View source
<?php
namespace Drupal\Tests\recipe\Functional;
use Drupal\Tests\BrowserTestBase;
abstract class RecipeTestBase extends BrowserTestBase {
protected $defaultTheme = 'stark';
protected static $modules = [
'block',
'recipe',
'views',
];
protected $adminUser;
public function setUp() : void {
parent::setUp();
$this
->drupalPlaceBlock('system_breadcrumb_block');
$permissions = [
'create recipe content',
'edit any recipe content',
'administer site configuration',
'view ingredient',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
}
}
Classes
Name |
Description |
RecipeTestBase |
Provides setup and helper methods for recipe module tests. |