function BlockExampleTestCase::setUp

Enable modules and create user with specific permissions.

Parameters

...: List of modules to enable for the duration of the test. This can be either a single array or a variable number of string arguments.

Overrides DrupalWebTestCase::setUp

File

block_example/block_example.test, line 30

Class

BlockExampleTestCase
Functional tests for the Block Example module.

Code

public function setUp() {
  parent::setUp('block_example', 'search');
  // Create user. Search content permission granted for the search block to
  // be shown.
  $this->webUser = $this->drupalCreateUser(array(
    'administer blocks',
    'search content',
    'access contextual links',
  ));
}