public function ContextualLinksExampleTestCase::setUp in Examples for Developers 7
Enable modules and create user with specific permissions.
Overrides DrupalWebTestCase::setUp
File
- contextual_links_example/
contextual_links_example.test, line 31 - Functional tests for the contextual_links_example module.
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);
}