You are here

public function NotifyUITest::testNotifyPages in Notify 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/NotifyUITest.php \Drupal\Tests\notify\Functional\NotifyUITest::testNotifyPages()
  2. 1.0.x tests/src/Functional/NotifyUITest.php \Drupal\Tests\notify\Functional\NotifyUITest::testNotifyPages()

Tests user notify pages.

File

tests/src/Functional/NotifyUITest.php, line 54

Class

NotifyUITest
Tests that the Notify UI pages are reachable.

Namespace

Drupal\Tests\notify\Functional

Code

public function testNotifyPages() {
  $account = $this
    ->drupalCreateUser([
    'access notify',
  ]);
  $this
    ->drupalLogin($account);
  $this
    ->drupalGet('user/' . $account
    ->id() . '/notify');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}