function BlockAccessEnableTestCase::testOperationGranted in Block Access 7
Test $user1 can do operation
File
- tests/
op_basic_enable.test, line 61 - Tests for block_access / operation enable
Class
- BlockAccessEnableTestCase
- Tests for block_access / operation enable
Code
function testOperationGranted() {
$this
->drupalLogin($this->user1);
// Disable block
$edit = array(
'blocks[block_' . $this->block->delta . '][region]' => 'sidebar_first',
);
$this
->drupalPost('admin/structure/block', $edit, t('Save blocks'));
$this
->assertResponse(200);
// Verify block in disabled region
$this
->assertBlockInRegion($this->block, 'sidebar_first');
}