You are here

function BlockAccessEnableTestCase::testUINotGranted in Block Access 7

Test UI does not allow $user2 to do operation

File

tests/op_basic_enable.test, line 74
Tests for block_access / operation enable

Class

BlockAccessEnableTestCase
Tests for block_access / operation enable

Code

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