public function ImageExampleTestCase::setUp in Examples for Developers 7
Enable modules and create user with specific permissions.
Overrides DrupalWebTestCase::setUp
File
- image_example/
image_example.test, line 33 - Test case for testing the image example module.
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',
));
}