function BlockAccessDeleteTestCase::testNotGranted in Block Access 7
Test $user2 is not granted operation
File
- tests/
op_basic_delete.test, line 63 - Tests for block_access / operation delete
Class
- BlockAccessDeleteTestCase
- Tests for block_access / operation delete
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 . '/delete');
$this
->drupalGet('admin/structure/block/manage/block/' . $this->block->delta . '/delete');
$this
->assertResponse(403);
}