NotifyUITest.php in Notify 2.0.x
File
tests/src/Functional/NotifyUITest.php
View source
<?php
namespace Drupal\Tests\notify\Functional;
use Drupal\Tests\BrowserTestBase;
class NotifyUITest extends BrowserTestBase {
public static $modules = [
'notify',
];
protected $profile = 'standard';
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);
}
public function testNotifyPages() {
$account = $this
->drupalCreateUser([
'access notify',
]);
$this
->drupalLogin($account);
$this
->drupalGet('user/' . $account
->id() . '/notify');
$this
->assertSession()
->statusCodeEquals(200);
}
}