You are here

static function BlockAccessTestCase::getConfigOperations in Block Access 7

Helper - list config-specific operations keyed by their associated field on block edit page

3 calls to BlockAccessTestCase::getConfigOperations()
BlockAccessConfigSpecificTestCase::testConfigOperations in tests/op_config.test
Test all config-specific operations
BlockAccessUITestCase::testUIBlockConfigPage in tests/ui.test
Test UI on block config page
BlockAccessUITestCase::testUISettingsEditPage in tests/ui.test
Test UI on settings edit page

File

tests/common.test, line 57
Tests for block_access - common methods

Class

BlockAccessTestCase
Tests for block_access - common methods

Code

static function getConfigOperations() {
  $theme = variable_get('theme_default', 'bartik');
  return array(
    'title' => 'config_title',
    'info' => 'config_desc',
    'body[value]' => 'config_body',
    "regions[{$theme}]" => 'config_region',
    'visibility' => 'config_page_visibility',
    'types[page]' => 'config_type_visibility',
    'roles[1]' => 'config_role_visibility',
    'custom' => 'config_user_visibility',
  );
}