You are here

function BlockAccessDisableTestCase::testUINotGranted in Block Access 7

Test UI does not allow $user2 to do operation

File

tests/op_basic_disable.test, line 74
Tests for block_access / operation disable

Class

BlockAccessDisableTestCase
Tests for block_access / operation disable

Code

function testUINotGranted() {
  $this
    ->drupalLogin($this->user2);
  $this
    ->drupalGet('admin/structure/block');
  $this
    ->assertResponse(200);
  $this
    ->assertNoOption('blocks[block_' . $this->block->delta . '][region]', BLOCK_REGION_NONE);
}