public function BlockAttributesTestCase::setUp in Block Attributes 7
Enable modules and create user with specific permissions.
By default Test Cases are carried on the "Main page content" Block.
Overrides DrupalWebTestCase::setUp
5 calls to BlockAttributesTestCase::setUp()
- BlockAttributesContextTestCase::setUp in ./block_attributes.test 
- Enable modules and create user with specific permissions.
- BlockAttributesFeaturesTestCase::setUp in ./block_attributes.test 
- Enable modules and create user with specific permissions.
- BlockAttributesMenuBlockTestCase::setUp in ./block_attributes.test 
- Enable modules and create user with specific permissions.
- BlockAttributesPermissionTestCase::setUp in ./block_attributes.test 
- Enable modules and create user with specific permissions.
- BlockAttributesViewsTestCase::setUp in ./block_attributes.test 
- Enable modules and create the data necessary to run the tests.
5 methods override BlockAttributesTestCase::setUp()
- BlockAttributesContextTestCase::setUp in ./block_attributes.test 
- Enable modules and create user with specific permissions.
- BlockAttributesFeaturesTestCase::setUp in ./block_attributes.test 
- Enable modules and create user with specific permissions.
- BlockAttributesMenuBlockTestCase::setUp in ./block_attributes.test 
- Enable modules and create user with specific permissions.
- BlockAttributesPermissionTestCase::setUp in ./block_attributes.test 
- Enable modules and create user with specific permissions.
- BlockAttributesViewsTestCase::setUp in ./block_attributes.test 
- Enable modules and create the data necessary to run the tests.
File
- ./block_attributes.test, line 49 
- Test the Block Attributes module.
Class
- BlockAttributesTestCase
- Provides common functionality for the Block Attributes test classes.
Code
public function setUp() {
  // Merge inherited classes modules, see FieldUITestCase for an example.
  $modules = func_get_args();
  if (isset($modules[0]) && is_array($modules[0])) {
    $modules = $modules[0];
  }
  $modules[] = 'block_attributes';
  parent::setUp($modules);
  // Authenticate test user.
  $this->privilegedUser = $this
    ->drupalCreateUser($this->permissions);
  $this
    ->drupalLogin($this->privilegedUser);
}