You are here

public function BlockAttributesMenuBlockTestCase::setUp in Block Attributes 7

Enable modules and create user with specific permissions.

Overrides BlockAttributesTestCase::setUp

File

./block_attributes.test, line 493
Test the Block Attributes module.

Class

BlockAttributesMenuBlockTestCase
Test Block Attributes 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');
}