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

image_example/image_example.test, line 33

Class

ImageExampleTestCase
Functional tests for the Image Example module.

Code

public function setUp() {
  parent::setUp('image_example');
  // Create user with permission to administer image styles.
  $this->webUser = $this->drupalCreateUser(array(
    'administer image styles',
    'administer blocks',
  ));
}