public function FixedBlockAdminTest::setUp in Fixed Block Content 8
Overrides FunctionalFixedBlockTestBase::setUp
File
- tests/
src/ Functional/ FixedBlockAdminTest.php, line 29
Class
- FixedBlockAdminTest
- Tests the fixed block content admin.
Namespace
Drupal\Tests\fixed_block_content\FunctionalCode
public function setUp() {
parent::setUp();
// Create and log in an administrative user.
$this->adminUser = $this
->drupalCreateUser([
'administer blocks',
'access administration pages',
'view the administration theme',
]);
$this
->drupalLogin($this->adminUser);
// Add the local task links.
$this
->drupalPlaceBlock('local_tasks_block', []);
// Add the page title block.
$this
->drupalPlaceBlock('page_title_block', []);
// Generate a random content to work with.
$this->randomContent = $this
->randomMachineName(128);
}