You are here

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

Define setup tasks.

Overrides DrupalWebTestCase::setUp

File

tests/JuiceboxViewsCase.test, line 28
Test case for integration with File Entity module.

Class

JuiceboxViewsCase
Class to define test case for integration with File Entity module.

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();
}