public function DynamicBackgroundTestCase::setUp in Dynamic Background 7
Set up the test enviroment.
Overrides DrupalWebTestCase::setUp
File
- ./
dynamic_background.test, line 22
Class
Code
public function setUp() {
parent::setUp('dynamic_background');
// Create user that have all the dynamic background premissions.
$this->privileged_user = $this
->drupalCreateUser(array(
'configure dynamic backgrounds',
'set dynamic backgrounds',
'dynamic backgrounds css',
));
$this
->drupalLogin($this->privileged_user);
// Set default variables
$this->btnSave = t('Save configuration');
$this->msgSave = t('The configuration options have been saved.');
}