Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Command/Task/TaskStartTest.php
2013-12-18 23:34:06 +01:00

25 lines
709 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Command\Task;
use Alchemy\Phrasea\Command\Task\TaskStart;
use Alchemy\Phrasea\Model\Entities\Task;
class TaskStartTest extends \PhraseanetTestCase
{
public function testRunWithoutProblems()
{
$input = $this->getMock('Symfony\Component\Console\Input\InputInterface');
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
$input->expects($this->any())
->method('getArgument')
->with('task_id')
->will($this->returnValue(1));
$command = new TaskStart();
$command->setContainer(self::$DI['cli']);
$command->execute($input, $output);
}
}