function ImageGalleryTest::setUp in Image 6
Same name and namespace in other branches
- 7 contrib/image_gallery/tests/image_gallery.test \ImageGalleryTest::setUp()
File
- contrib/
image_gallery/ tests/ image_gallery.test, line 15
Class
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);
}