public function JuiceboxFileEntityCase::setUp in Juicebox HTML5 Responsive Image Galleries 7.2
Define setup tasks.
Overrides DrupalWebTestCase::setUp
File
- tests/
JuiceboxFileEntityCase.test, line 28 - Test case for integration with File Entity module.
Class
- JuiceboxFileEntityCase
- Class to define test case for integration with File Entity module.
Code
public function setUp() {
parent::setUp('juicebox', 'file_entity');
// Create and login user.
$this->webUser = $this
->drupalCreateUser(array(
'access content',
'access administration pages',
'administer site configuration',
'administer content types',
'administer nodes',
'create article content',
'edit any article content',
'delete any article content',
'administer image styles',
'administer files',
'administer file types',
'edit any image files',
'administer fields',
));
$this
->drupalLogin($this->webUser);
}