Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Command/Task/SchedulerPauseTest.php
2013-12-10 01:29:02 +01:00

25 lines
830 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Command\Task;
use Alchemy\Phrasea\Command\Task\SchedulerPauseTasks;
class SchedulerPauseTasksTest 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('stop');
$input = $this->getMock('Symfony\Component\Console\Input\InputInterface');
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
$command = new SchedulerPauseTasks();
$command->setContainer(self::$DI['cli']);
$command->execute($input, $output);
}
}