mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
26 lines
724 B
PHP
26 lines
724 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Command\Task;
|
|
|
|
use Alchemy\Phrasea\Command\Task\TaskList;
|
|
|
|
class TaskListTest extends \PhraseanetPHPUnitAbstract
|
|
{
|
|
public function testRunWithoutProblems()
|
|
{
|
|
$this->insertTwoTasks();
|
|
|
|
$input = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
|
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
|
|
|
$command = new TaskList();
|
|
$command->setContainer(self::$DI['cli']);
|
|
|
|
$application = new \Symfony\Component\Console\Application();
|
|
$application->add($command);
|
|
|
|
$setupCommand = $application->find('task:list');
|
|
$setupCommand->execute($input, $output);
|
|
}
|
|
}
|