You are here

public function BlockClassMenuBlockTestCase::setUp in Block Class 7.2

Enable modules and create user with specific permissions.

Overrides BlockClassTestCase::setUp

File

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

Class

BlockClassMenuBlockTestCase
Test Block Class integration with Menu Block.

Code

public function setUp() {

  // Override default parameters to test with the first Menu Block created.
  $this->module = 'menu_block';
  $this->delta = 1;

  // Add permission required by Menu Block to browse the add menu block page.
  $this->permissions[] = 'administer menu';

  // Include the Menu Block module and its dependencies to be loaded.
  parent::setUp('menu_block');
}