You are here

public function BlockClassContextTestCase::setUp in Block Class 7

Same name and namespace in other branches
  1. 7.2 block_class.test \BlockClassContextTestCase::setUp()

Enable modules and create user with specific permissions.

Overrides BlockClassTestCase::setUp

File

./block_class.test, line 206
Test the Block Class module.

Class

BlockClassContextTestCase
Test Block Class integration with Context.

Code

public function setUp() {

  // Override default module and delta to test with the "Who's online" block.
  $this->module = 'user';
  $this->delta = 'online';

  // Include the Context module and its dependencies to be loaded.
  parent::setUp('context', 'ctools');

  // Initialize a test context with the test block.
  $this
    ->initializeContext();
}