1 block_example.test public BlockExampleTestCase::setUp()

Enable modules and create user with specific permissions.

Overrides BackdropWebTestCase::setUp

File

modules/examples/block_example/tests/block_example.test, line 19
Test case for testing the block example module.

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->backdropCreateUser(
  array(
    'administer blocks',
    'search content',
    'access contextual links',
    'administer layouts',
  )
  );
}