protected function EntityLegalTestBase::setUp in Entity Legal 3.0.x
Same name and namespace in other branches
- 8.2 src/Tests/EntityLegalTestBase.php \Drupal\entity_legal\Tests\EntityLegalTestBase::setUp()
- 4.0.x src/Tests/EntityLegalTestBase.php \Drupal\entity_legal\Tests\EntityLegalTestBase::setUp()
File
- src/
Tests/ EntityLegalTestBase.php, line 32
Class
- EntityLegalTestBase
- Common Simpletest class for all legal tests.
Namespace
Drupal\entity_legal\TestsCode
protected function setUp() {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer entity legal',
'administer permissions',
'administer user form display',
'administer users',
]);
// Ensure relevant blocks present if profile isn't 'standard'.
if ($this->profile !== 'standard') {
$this
->drupalPlaceBlock('local_actions_block');
$this
->drupalPlaceBlock('page_title_block');
}
}