You are here

function ImagecacheExternalTestCase::setUp in Imagecache External 8

Same name and namespace in other branches
  1. 7.2 imagecache_external.test \ImagecacheExternalTestCase::setUp()

File

./imagecache_external.test, line 24
Tests for Imagecache External.

Class

ImagecacheExternalTestCase
Tests the functions for working with public/private file schemes.

Code

function setUp() {
  parent::setUp([
    'imagecache_external',
    'text',
  ]);
  $this->admin_user = $this
    ->drupalCreateUser([
    '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',
  ]);
  $this
    ->drupalLogin($this->admin_user);

  // // Login as a normal user.
  // $user = $this->drupalCreateUser(['access content']);
  // $this->drupalLogin($user);
  // Set a default image url.
  $this->external_image_uri = 'https://drupal.org/files/druplicon.large_.png';
}