You are here

function NodeHierarchyPermissionsTests::testSiteOutlineInvalidPermissions in Node Hierarchy 6

File

tests/nodehierarchy.test, line 127

Class

NodeHierarchyPermissionsTests

Code

function testSiteOutlineInvalidPermissions() {

  // all sorts of permissions except 'view site outline'
  $perm = array(
    'access content',
    'administer nodes',
    'administer hierarchy',
    'create child nodes',
    'edit all node parents',
    'edit own node parents',
    'reorder children',
  );
  $this
    ->loginWithPermissions($perm);
  $this
    ->drupalGet('admin/content/nodehierarchy');
  $this
    ->assertResponse('403', 'Site Outline returned 403 Forbidden');
}