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