function BlockAccessViewTestCase::testNotGranted in Block Access 7
Test $user2 is not granted operation
File
- tests/
op_basic_view.test, line 65 - Tests for block_access / operation view
Class
- BlockAccessViewTestCase
- Tests for block_access / operation view
Code
function testNotGranted() {
$this
->drupalLogin($this->user2);
// Block overview page
$this
->drupalGet('admin/structure/block');
$this
->assertResponse(200);
$custom_block = block_custom_block_get($this->block->delta);
$this
->assertNoText($custom_block['info']);
// Block config page
$this
->drupalGet('admin/structure/block/manage/block/' . $this->block->delta . '/configure');
$this
->assertResponse(403);
}