mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
syslog + maillog in task / task-manager as service
fix task interfaces / cleanup fix tests using task manager
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
use Alchemy\Phrasea\CLI;
|
||||
use Symfony\Component\Console\Tester\CommandTester;
|
||||
|
||||
class module_console_tasklistTest extends PHPUnit_Framework_TestCase
|
||||
class module_console_tasklistTest extends PhraseanetPHPUnitAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
@@ -18,7 +18,7 @@ class module_console_tasklistTest extends PHPUnit_Framework_TestCase
|
||||
$commandTester = new CommandTester($command);
|
||||
$commandTester->execute(array('command' => $command->getName()));
|
||||
|
||||
$task_manager = new task_manager($application);
|
||||
$task_manager = self::$DI['app']['task-manager'];
|
||||
$lines = explode("\n", trim($commandTester->getDisplay()));
|
||||
|
||||
if (count($task_manager->getTasks()) > 0) {
|
||||
|
Reference in New Issue
Block a user