1 cron_example.test public CronExampleTestCase::setUp()

Enable modules and create user with specific permissions.

Overrides BackdropWebTestCase::setUp

File

modules/examples/cron_example/tests/cron_example.test, line 18
Test case for testing the cron example module.

Class

CronExampleTestCase
cron_example test class

Code

public function setUp() {
  parent::setUp('cron_example');
  // Create user. Search content permission granted for the search block to
  // be shown.
  $this->webUser = $this->backdropCreateUser(array('administer site configuration'));
  $this->backdropLogin($this->webUser);
}