You are here

public function AdminFunctionalityTest::setUp in Synonyms 8

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

Overrides BrowserTestBase::setUp

File

tests/src/Functional/AdminFunctionalityTest.php, line 37

Class

AdminFunctionalityTest
Checks if admin functionality works correctly.

Namespace

Drupal\Tests\synonyms\Functional

Code

public function setUp() {
  parent::setUp();
  $this->container
    ->get('router.builder')
    ->rebuild();

  // Log in an admin user.
  $account = $this
    ->drupalCreateUser([
    'access synonyms entity autocomplete',
    'administer synonyms',
  ]);
  $this
    ->drupalLogin($account);
}