public function JuiceboxConfGlobalCase::setUp in Juicebox HTML5 Responsive Image Galleries 7.2
Define setup tasks.
Overrides DrupalWebTestCase::setUp
File
- tests/
JuiceboxConfGlobalCase.test, line 27 - Test case for Juicebox global configuration options.
Class
- JuiceboxConfGlobalCase
- Class to define test case for Juicebox global configuration options.
Code
public function setUp() {
parent::setUp('juicebox');
// 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 fields',
));
$this
->drupalLogin($this->webUser);
// Prep an article with an image field and activate the Juicebox display
// formatter for it.
$this
->prepArticle();
$this
->activateJuiceboxFieldFormatter($this->instance);
// Add a english translated string for the Juicebox languagelist.
variable_set('locale_custom_strings_en', array(
'' => array(
'Show Thumbnails|Hide Thumbnails|Expand Gallery|Close Gallery|Open Image in New Window' => 'Translated|Lang|List',
),
));
}