You are here

function BlockAccessConfigTestCase::testNotGranted in Block Access 7

Test $user2 is not granted operation

File

tests/op_basic_config.test, line 61
Tests for block_access / operation config

Class

BlockAccessConfigTestCase
Tests for block_access / operation config

Code

function testNotGranted() {
  $this
    ->drupalLogin($this->user2);
  $this
    ->drupalGet('admin/structure/block');
  $this
    ->assertResponse(200);
  $this
    ->assertNoLinkByHref('admin/structure/block/manage/block/' . $this->block->delta . '/configure');
  $this
    ->drupalGet('admin/structure/block/manage/block/' . $this->block->delta . '/configure');
  $this
    ->assertResponse(403);
}