mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
25 lines
823 B
PHP
25 lines
823 B
PHP
<?php
|
|
|
|
namespace Alchemy\Tests\Phrasea\Command\Task;
|
|
|
|
use Alchemy\Phrasea\Command\Task\SchedulerStart;
|
|
|
|
class SchedulerStartTest extends \PhraseanetPHPUnitAbstract
|
|
{
|
|
public function testRunWithoutProblems()
|
|
{
|
|
self::$DI['cli']['task-manager.status'] = $this->getMockBuilder('Alchemy\Phrasea\TaskManager\TaskManagerStatus')
|
|
->disableOriginalConstructor()
|
|
->getMock();
|
|
self::$DI['cli']['task-manager.status']->expects($this->once())
|
|
->method('start');
|
|
|
|
$input = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
|
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
|
|
|
$command = new SchedulerStart();
|
|
$command->setContainer(self::$DI['cli']);
|
|
$command->execute($input, $output);
|
|
}
|
|
}
|