function FlagHookInvocationsTestCase::setUp in Flag 7.3
Implements setUp().
Overrides DrupalWebTestCase::setUp
File
- tests/
flag.test, line 1272 - Tests for the Flag module.
Class
- FlagHookInvocationsTestCase
- Verifies the invocation of hooks when performing flagging and unflagging.
Code
function setUp() {
parent::setUp('flag', 'rules', 'flag_hook_test');
// Note the test module contains our test flag.
// Create test user who can flag and unflag.
$this->flag_unflag_user = $this
->drupalCreateUser(array(
'flag flag_hook_test_flag',
'unflag flag_hook_test_flag',
));
$this
->drupalLogin($this->flag_unflag_user);
}