You are here

protected function AdminUiTest::setUp in New Relic 2.x

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/AdminUiTest.php \Drupal\Tests\new_relic_rpm\Functional\AdminUiTest::setUp()

Throws

\Drupal\Core\Entity\EntityStorageException

Overrides BrowserTestBase::setUp

File

tests/src/Functional/AdminUiTest.php, line 39

Class

AdminUiTest
Tests admin UI.

Namespace

Drupal\Tests\new_relic_rpm\Functional

Code

protected function setUp() {
  parent::setUp();
  $admin = $this
    ->createUser([], NULL, TRUE);
  $admin
    ->addRole('administrator');
  $admin
    ->save();
  $this
    ->drupalLogin($admin);
  if (!isset($this->assert) || !isset($this->page)) {
    $this->assert = $this
      ->assertSession();
    $this->page = $this
      ->getSession()
      ->getPage();
  }
}