You are here

public function JuiceboxSubRequestCase::setUp in Juicebox HTML5 Responsive Image Galleries 7.2

Define setup tasks.

Overrides DrupalWebTestCase::setUp

File

tests/JuiceboxSubRequestCase.test, line 28
Test case for XML generation based on a sub-request.

Class

JuiceboxSubRequestCase
Class to define test case for XML generation based on a sub-request.

Code

public function setUp() {
  parent::setUp('juicebox', 'views', 'juicebox_views_test');

  // 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 views',
    'access contextual links',
    'administer fields',
  ));
  $this
    ->drupalLogin($this->webUser);

  // Prep an article with an image field. All our views will list article
  // content or file data sourced from it.
  $this
    ->prepArticle();
}