You are here

function ImageGalleryTest::setUp in Image 6

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

File

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

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