diff --git a/tests/module/console/module_console_schedulerStateTest.php b/tests/module/console/module_console_schedulerStateTest.php index d40df05830..c3033431ba 100644 --- a/tests/module/console/module_console_schedulerStateTest.php +++ b/tests/module/console/module_console_schedulerStateTest.php @@ -22,14 +22,14 @@ class module_console_schedulerStateTest extends PHPUnit_Framework_TestCase $commandTester = new CommandTester($command); $commandTester->execute(array('command' => $command->getName())); - $task_manager = new task_manager(self::$application); + $task_manager = new task_manager($application); $state = $task_manager->getSchedulerState(); $sentence = sprintf('Scheduler is %s', $state['status']); $this->assertTrue(strpos($commandTester->getDisplay(), $sentence) !== false); $commandTester->execute(array('command' => $command->getName(), '--short'=>true)); - $task_manager = new task_manager(self::$application); + $task_manager = new task_manager($application); $state = $task_manager->getSchedulerState(); $sentence = sprintf('%s(%s)', $state['status'], $state['pid']); diff --git a/tests/module/console/module_console_taskStateTest.php b/tests/module/console/module_console_taskStateTest.php index 8286de7248..8d29c63382 100644 --- a/tests/module/console/module_console_taskStateTest.php +++ b/tests/module/console/module_console_taskStateTest.php @@ -31,7 +31,7 @@ class module_console_taskStateTest extends PhraseanetPHPUnitAbstract $this->assertTrue(strpos($commandTester->getDisplay(), $sentence) !== false); // test good tasks ids - $task_manager = new task_manager(self::$application); + $task_manager = new task_manager($application); $tasks = $task_manager->getTasks(); $tids = array(); // list known ids of tasks so we can generate a 'unknown id' later foreach ($tasks as $task) { diff --git a/tests/module/console/module_console_tasklistTest.php b/tests/module/console/module_console_tasklistTest.php index 6f5caedccc..373e16df9e 100644 --- a/tests/module/console/module_console_tasklistTest.php +++ b/tests/module/console/module_console_tasklistTest.php @@ -22,7 +22,7 @@ class module_console_tasklistTest extends PHPUnit_Framework_TestCase $commandTester = new CommandTester($command); $commandTester->execute(array('command' => $command->getName())); - $task_manager = new task_manager(self::$application); + $task_manager = new task_manager($application); $lines = explode("\n", trim($commandTester->getDisplay())); if (count($task_manager->getTasks()) > 0) {