Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Command/Task/SchedulerResumeTest.php
Romain Neutron d7f7e1c92c Fix CS
2014-01-14 12:04:38 +01:00

25 lines
829 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Command\Task;
use Alchemy\Phrasea\Command\Task\SchedulerResumeTasks;
class SchedulerResumeTest extends \PhraseanetTestCase
{
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 SchedulerResumeTasks();
$command->setContainer(self::$DI['cli']);
$command->execute($input, $output);
}
}