function AnnounceFeedTestValidatePermissions::testAnnounceWithoutPermission

Testing the announcements page without access announcements permission.

File

modules/announcements_feed/tests/announce_feed_test.test, line 254

Class

AnnounceFeedTestValidatePermissions
Test the Announcements module permissions.

Code

public function testAnnounceWithoutPermission() {
    $account = $this->drupalCreateUser(array(
        'access toolbar',
    ));
    $this->drupalLogin($account);
    $this->drupalGet('admin/announcements_feed');
    $this->assertResponse(403);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.