You are here

protected function SiteAlertUiTest::setUp in Site Alert 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/SiteAlertUiTest.php, line 35

Class

SiteAlertUiTest
Tests that the Site Alert is working correctly.

Namespace

Drupal\Tests\site_alert\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create and log in an administrative user.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer site alert',
    'add site alerts',
    'update site alerts',
    'delete site alerts',
    'access administration pages',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}