public function NotifyUITest::testAdminPages in Notify 2.0.x
Same name and namespace in other branches
- 8 tests/src/Functional/NotifyUITest.php \Drupal\Tests\notify\Functional\NotifyUITest::testAdminPages()
- 1.0.x tests/src/Functional/NotifyUITest.php \Drupal\Tests\notify\Functional\NotifyUITest::testAdminPages()
Tests admin pages.
File
- tests/
src/ Functional/ NotifyUITest.php, line 31
Class
- NotifyUITest
- Tests that the Notify UI pages are reachable.
Namespace
Drupal\Tests\notify\FunctionalCode
public function testAdminPages() {
$account = $this
->drupalCreateUser([
'administer notify',
]);
$this
->drupalLogin($account);
$this
->drupalGet('admin/config/people/notify');
$this
->assertSession()
->statusCodeEquals(200);
$this
->drupalGet('admin/config/people/notify/queue');
$this
->assertSession()
->statusCodeEquals(200);
$this
->drupalGet('admin/config/people/notify/skip');
$this
->assertSession()
->statusCodeEquals(200);
$this
->drupalGet('admin/config/people/notify/defaults');
$this
->assertSession()
->statusCodeEquals(200);
$this
->drupalGet('admin/config/people/notify/users');
$this
->assertSession()
->statusCodeEquals(200);
}