function ImageExampleTestCase::setUp
Enable modules and create user with specific permissions.
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',
));
}