Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Command/Task/TaskStopTest.php
2015-06-15 19:30:51 +02:00

33 lines
888 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Command\Task;
use Alchemy\Phrasea\Command\Task\TaskStop;
use Alchemy\Phrasea\Model\Entities\Task;
/**
* @group functional
* @group legacy
*/
class TaskStopTest 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));
self::$DI['cli']['monolog'] = self::$DI['cli']->share(function () {
return $this->createMonologMock();
});
$command = new TaskStop();
$command->setContainer(self::$DI['cli']);
$command->execute($input, $output);
}
}