function TokenActionsTestCase::assignTriggerAction in Token 6
Assign an action to a trigger.
Parameters
$type: The trigger type.
$trigger: The trigger.
$action: The action object.
1 call to TokenActionsTestCase::assignTriggerAction()
- TokenActionsTestCase::testUserActions in ./
token_actions.test - Test user actions and triggers.
File
- ./
token_actions.test, line 74 - Tests for the token_actions module.
Class
- TokenActionsTestCase
- @file Tests for the token_actions module.
Code
function assignTriggerAction($type, $trigger, $action) {
$edit['aid'] = md5($action->aid);
$this
->drupalPost("admin/build/trigger/{$type}", $edit, 'Assign', array(), array(), "trigger-{$type}-{$trigger}-assign-form");
return $this
->assertLinkByHref("admin/build/trigger/unassign/{$type}/{$trigger}/{$edit['aid']}", 0, t('Action assigned to @type @trigger trigger.', array(
'@type' => $type,
'@trigger' => $trigger,
)));
}