private function BookAccessTestCase::caseAdministerAnyBookAccess in Book access 7.2
1 call to BookAccessTestCase::caseAdministerAnyBookAccess()
File
- ./
book_access_test_case.test, line 145
Class
Code
private function caseAdministerAnyBookAccess() {
$user = $this
->drupalCreateUser(array(
'administer access of any book',
'access content',
));
$this
->drupalLogin($user);
foreach ($this->nodes as $node) {
$nid = $node->nid;
$this
->drupalGet("node/{$nid}");
$this
->assertResponse('200', t('Can access content'));
$this
->drupalGet("book_access/delete/user_permission/{$nid}/{$this->author->uid}");
$this
->assertResponse('403', t('Cannot modify book_access permissions'));
$this
->drupalGet("node/{$nid}/book_access");
$this
->assertResponse('200', t('Can change book access'));
}
$this
->drupalLogout();
}