1 contextual_links_example.test public ContextualLinksExampleTestCase::setUp()

Enable modules and create user with specific permissions.

Overrides BackdropWebTestCase::setUp

File

modules/examples/contextual_links_example/tests/contextual_links_example.test, line 19
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->backdropCreateUser(array(
    'access contextual links',
    'administer blocks',
    'administer layouts',
  ));
  $this->backdropLogin($this->webUser);
}