public function StateFlowWebTestCase::stateFlowLoginAdmin in State Machine 7.3
2 calls to StateFlowWebTestCase::stateFlowLoginAdmin()
- StateFlowWebTestCase::setup in modules/
state_flow/ tests/ state_flow.test - StateFlowWebTestCase::testUnpublish in modules/
state_flow/ tests/ state_flow.test - Test just the unpublish event, verify access/non-access of anonymous users.
File
- modules/
state_flow/ tests/ state_flow.test, line 35 - state_flow.test
Class
- StateFlowWebTestCase
- Unit tests for the StateFlow revision state machine.
Code
public function stateFlowLoginAdmin() {
$web_user = $this
->drupalCreateUser(array(
'administer nodes',
'bypass node access',
'manage content workflow',
'administer content revisions',
));
$this
->drupalLogin($web_user);
}