function NotificationsBasicTests::testNotificationsBasicPages in Notifications 6.4
Same name and namespace in other branches
- 6 tests/notifications_api.test \NotificationsBasicTests::testNotificationsBasicPages()
- 6.2 tests/notifications_api.test \NotificationsBasicTests::testNotificationsBasicPages()
- 6.3 tests/notifications_api.test \NotificationsBasicTests::testNotificationsBasicPages()
- 7 tests/notifications_api.test \NotificationsBasicTests::testNotificationsBasicPages()
Log in as administrator and test page loading
File
- tests/
notifications_api.test, line 91
Class
- NotificationsBasicTests
- Class for testing notifications module. Tests basic API functions
Code
function testNotificationsBasicPages() {
// Log in with administrator permissions
$user = $this
->drupalCreateUser(array(
'administer notifications',
'maintain own subscriptions',
'administer site configuration',
));
$this
->drupalLogin($user);
$this
->drupalGet('admin/messaging/notifications');
$this
->assertText('General settings', 'General settings page showing up');
$this
->drupalGet('admin/messaging/notifications/events');
$this
->assertText('Event type', 'Enabled events page showing up');
$this
->drupalGet('admin/messaging/notifications/intervals');
$this
->assertText('Send intervals', 'Intervals page showing up');
$this
->drupalGet('admin/messaging/subscriptions/status');
$this
->assertText('Subscriptions by type', 'Subscriptions overview page showing up');
$this
->drupalGet('admin/messaging/subscriptions');
$this
->assertText('Manage subscriptions', 'Subscriptions administration page showing up');
$this
->drupalGet('admin/messaging/notifications/queue/operations');
$this
->assertText('Notifications in queue', 'Notifications queue page showing up');
}