mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
27 lines
884 B
PHP
27 lines
884 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Command\Task;
|
|
|
|
use Alchemy\Phrasea\Command\Task\TaskList;
|
|
|
|
class TaskListTest extends \PhraseanetTestCase
|
|
{
|
|
public function testRunWithoutProblems()
|
|
{
|
|
$input = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
|
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
|
$output->expects($this->any())
|
|
->method('getFormatter')
|
|
->will($this->returnValue($this->getMock('Symfony\Component\Console\Formatter\OutputFormatterInterface')));
|
|
|
|
$command = new TaskList();
|
|
$command->setContainer(self::$DI['cli']);
|
|
|
|
$application = new \Symfony\Component\Console\Application();
|
|
$application->add($command);
|
|
|
|
$setupCommand = $application->find('task-manager:task:list');
|
|
$setupCommand->execute($input, $output);
|
|
}
|
|
}
|