Differential D11044 Diff 26524 src/infrastructure/daemon/workers/__tests__/PhabricatorWorkerTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/__tests__/PhabricatorWorkerTestCase.php
| Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | private function scheduleAndExecuteTask( | ||||
| $task = $task->executeTask(); | $task = $task->executeTask(); | ||||
| return $task; | return $task; | ||||
| } | } | ||||
| private function scheduleTask(array $data = array(), $priority = null) { | private function scheduleTask(array $data = array(), $priority = null) { | ||||
| return PhabricatorWorker::scheduleTask( | return PhabricatorWorker::scheduleTask( | ||||
| 'PhabricatorTestWorker', | 'PhabricatorTestWorker', | ||||
| $data, | $data, | ||||
| $priority); | array('priority' => $priority)); | ||||
| } | } | ||||
| } | } | ||||