You are here

function BlockAccessTestCase::createBlockAccessAdmin in Block Access 7

Helper - creates a user with all block_access perms

9 calls to BlockAccessTestCase::createBlockAccessAdmin()
BlockAccessConfigSpecificTestCase::setUp in tests/op_config.test
Sets up a Drupal site for running functional and integration tests.
BlockAccessConfigTestCase::setUp in tests/op_basic_config.test
Sets up a Drupal site for running functional and integration tests.
BlockAccessDeleteTestCase::setUp in tests/op_basic_delete.test
Sets up a Drupal site for running functional and integration tests.
BlockAccessDisableTestCase::setUp in tests/op_basic_disable.test
Sets up a Drupal site for running functional and integration tests.
BlockAccessEnableTestCase::setUp in tests/op_basic_enable.test
Sets up a Drupal site for running functional and integration tests.

... See full list

File

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

Class

BlockAccessTestCase
Tests for block_access - common methods

Code

function createBlockAccessAdmin() {
  return $this
    ->drupalCreateUser(array(
    // perms from system.module
    'access administration pages',
    // perms from user.module
    'administer permissions',
    // perms from block.module
    'administer blocks',
    // perms from block_access.module
    'administer block access settings',
    'access the block administration page',
    'create blocks',
    'view all blocks',
    'move all blocks',
    'enable all blocks',
    'disable all blocks',
    'delete all blocks',
    'configure all blocks',
    'configure all language settings',
    'configure all block titles',
    'configure all block descriptions',
    'configure all block body fields',
    'configure all region settings',
    'configure all visibility settings',
    'configure all page visibility settings',
    'configure all content type visibility settings',
    'configure all role visibility settings',
    'configure all user visibility settings',
  ));
}