You are here

function FlagAdminTestCase::setUp in Flag 7.3

Implements setUp().

Overrides DrupalWebTestCase::setUp

File

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

Class

FlagAdminTestCase
Test Flag admin UI.

Code

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

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