public function TransactionAdminTest::setUp in Transaction 8
Overrides FunctionalTransactionTestBase::setUp
File
- tests/
src/ Functional/ TransactionAdminTest.php, line 25
Class
- TransactionAdminTest
- Tests the transaction administration.
Namespace
Drupal\Tests\transaction\FunctionalCode
public function setUp() {
parent::setUp();
// Create and log in an administrative user.
$this->adminUser = $this
->drupalCreateUser([
'administer transaction types',
'administer entity_test fields',
'administer transaction fields',
'access administration pages',
'view the administration theme',
]);
$this
->drupalLogin($this->adminUser);
// Add some basic blocks.
$block_options = [
'region' => 'content',
];
// Page title block.
$this
->drupalPlaceBlock('page_title_block', $block_options);
// Local task links.
$this
->drupalPlaceBlock('local_tasks_block', $block_options);
// Primary admin actions.
$this
->drupalPlaceBlock('local_actions_block', $block_options);
}