You are here

function BlockAccessUITestCase::testUISettingsPage in Block Access 7

Test UI on settings page

every module implementing hook_block_info should have a link

File

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

Class

BlockAccessUITestCase
Tests for block_access / UI

Code

function testUISettingsPage() {
  $this
    ->drupalGet('admin/structure/block/block-access');
  $this
    ->assertResponse(200);
  foreach (module_implements('block_info') as $module) {
    $this
      ->assertLinkByHref("admin/structure/block/block-access/edit/{$module}");
  }
}