function BlockAccessUITestCase::testUISettingsEditPage in Block Access 7
Test UI on settings edit page
basic + config + region-specific operations should show up
File
- tests/
ui.test, line 50 - Tests for block_access / UI
Class
- BlockAccessUITestCase
- Tests for block_access / UI
Code
function testUISettingsEditPage() {
$this
->drupalGet('admin/structure/block/block-access/edit/node');
$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,
)));
}
foreach ($this
->getRegionOperations() as $op) {
$this
->assertField('dreg_' . $op . '_roles[1]', t('Found field %op', array(
'%op' => $op,
)));
}
}