root / drupal7 / sites / all / modules / rules / rules_scheduler / tests / rules_scheduler_test.inc @ 76e2e7c3
1 |
<?php |
---|---|
2 |
|
3 |
/** |
4 |
* @file |
5 |
* Include file for Rules Scheduler tests. |
6 |
*/ |
7 |
|
8 |
/** |
9 |
* Test task handler class. |
10 |
*/ |
11 |
class RulesTestTaskHandler extends RulesSchedulerDefaultTaskHandler { |
12 |
|
13 |
/** |
14 |
* Overrides RulesSchedulerDefaultTaskHandler::runTask(). |
15 |
*/ |
16 |
public function runTask() { |
17 |
$task = $this->getTask(); |
18 |
$data = unserialize($task['data']); |
19 |
|
20 |
// Set the variable defined in the test to TRUE. |
21 |
variable_set($data['variable'], TRUE); |
22 |
} |
23 |
|
24 |
} |