mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
25 lines
706 B
PHP
25 lines
706 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Command\Task;
|
|
|
|
use Alchemy\Phrasea\Command\Task\TaskStop;
|
|
use Alchemy\Phrasea\Model\Entities\Task;
|
|
|
|
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));
|
|
|
|
$command = new TaskStop();
|
|
$command->setContainer(self::$DI['cli']);
|
|
$command->execute($input, $output);
|
|
}
|
|
}
|