Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Command/Task/TaskListTest.php
2013-10-29 18:46:34 +01:00

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);
}
}