function FlagTestCase::setUp in Flag 7.2
Same name and namespace in other branches
- 6.2 tests/flag.test \FlagTestCase::setUp()
- 6 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);
}