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

cron_example/cron_example.test, line 29

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->drupalCreateUser(array(
    'administer site configuration',
  ));
  $this->drupalLogin($this->webUser);
}