You are here

function BlockAccessUITestCase::testUIBlockConfigPage in Block Access 7

Test UI on block config page

basic + config operations should show up here

File

tests/ui.test, line 69
Tests for block_access / UI

Class

BlockAccessUITestCase
Tests for block_access / UI

Code

function testUIBlockConfigPage() {
  $this
    ->drupalGet('admin/structure/block/manage/block/' . $this->block->delta . '/configure');
  $this
    ->assertResponse(200);
  foreach ($this
    ->getBasicOperations() as $op) {
    $this
      ->assertField($op . '_roles[1]', t('Found field %op', array(
      '%op' => $op,
    )));
  }
  foreach ($this
    ->getConfigOperations() as $op) {
    $this
      ->assertField($op . '_roles[1]', t('Found field %op', array(
      '%op' => $op,
    )));
  }
}