function ContextualLinksExampleTestCase::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

contextual_links_example/contextual_links_example.test, line 31

Class

ContextualLinksExampleTestCase
Functional tests for the contextual_links_example module.

Code

public function setUp() {
  parent::setUp('contextual', 'contextual_links_example');
  $this->webUser = $this->drupalCreateUser(array(
    'access contextual links',
    'administer blocks',
  ));
  $this->drupalLogin($this->webUser);
}