protected function MetatagFieldTestBase::setUp in Metatag 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ MetatagFieldTestBase.php, line 134
Class
- MetatagFieldTestBase
- Base class for ensuring that the Metatag field works correctly.
Namespace
Drupal\Tests\metatag\FunctionalCode
protected function setUp() {
parent::setUp();
// Any additional configuration that's neede for this entity type.
$this
->setUpEntityType();
// Merge the base permissions with the custom ones for the entity type and
// create a user with these permissions.
$all_perms = array_merge($this->basePerms, $this->entityPerms);
$this->adminUser = $this
->drupalCreateUser($all_perms);
$this
->drupalGet('/user/login');
$this
->assertSession()
->statusCodeEquals(200);
$this
->drupalLogin($this->adminUser);
}