You are here

function BlockAccessDeleteTestCase::testGranted in Block Access 7

Test $user1 is granted operation

File

tests/op_basic_delete.test, line 51
Tests for block_access / operation delete

Class

BlockAccessDeleteTestCase
Tests for block_access / operation delete

Code

function testGranted() {
  $this
    ->drupalLogin($this->user1);
  $this
    ->drupalGet('admin/structure/block');
  $this
    ->assertResponse(200);
  $this
    ->assertLinkByHref('admin/structure/block/manage/block/' . $this->block->delta . '/delete');
  $this
    ->drupalGet('admin/structure/block/manage/block/' . $this->block->delta . '/delete');
  $this
    ->assertResponse(200);
}