You are here

function FlagTestCase::setUp in Flag 6.2

Same name and namespace in other branches
  1. 6 tests/flag.test \FlagTestCase::setUp()
  2. 7.2 tests/flag.test \FlagTestCase::setUp()

Implements setUp().

Overrides DrupalWebTestCase::setUp

File

tests/flag.test, line 25
Tests for the Flag module.

Class

FlagTestCase
@file Tests for the Flag module.

Code

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

  // Create and login user
  $admin_user = $this
    ->drupalCreateUser(array(
    'access administration pages',
    'administer flags',
  ));
  $this
    ->drupalLogin($admin_user);
}