BlockPermissionsBrowserTestBase.php in Block permissions 8
File
tests/src/Functional/BlockPermissionsBrowserTestBase.php
View source
<?php
namespace Drupal\Tests\block_permissions\Functional;
use Drupal\Tests\BrowserTestBase;
abstract class BlockPermissionsBrowserTestBase extends BrowserTestBase {
protected static $modules = [
'block',
'block_permissions',
];
protected $defaultTheme = 'stark';
protected $secondTheme = 'bartik';
protected $pageTitleBlock;
protected $systemBrandingBlock;
protected function setUp() : void {
parent::setUp();
\Drupal::service('theme_installer')
->install([
$this->secondTheme,
], TRUE);
$this->pageTitleBlock = $this
->drupalPlaceBlock('page_title_block');
$this->systemBrandingBlock = $this
->drupalPlaceBlock('system_branding_block');
}
}