You are here

function ImageGalleryTest::setUp in Image 7

Same name and namespace in other branches
  1. 6 contrib/image_gallery/tests/image_gallery.test \ImageGalleryTest::setUp()

File

contrib/image_gallery/tests/image_gallery.test, line 11

Class

ImageGalleryTest

Code

function setUp() {
  parent::setUp();

  // User to create image galleries.
  $this->web_user = $this
    ->drupalCreateUserRolePerm(array(
    'create images',
    'view original images',
    'edit own images',
    'edit any images',
    'administer image galleries',
  ));
  $this
    ->drupalGet('logout');
  $this
    ->drupalLoginUser($this->web_user);
}