mirror of
				https://github.com/alchemy-fr/Phraseanet.git
				synced 2025-10-24 18:33:13 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			891 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			891 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Alchemy\Tests\Phrasea\Command\Task;
 | |
| 
 | |
| use Alchemy\Phrasea\Command\Task\TaskState;
 | |
| use Alchemy\Phrasea\Model\Entities\Task;
 | |
| 
 | |
| /**
 | |
|  * @group functional
 | |
|  * @group legacy
 | |
|  */
 | |
| class TaskStateTest extends \PhraseanetTestCase
 | |
| {
 | |
|     public function testRunWithoutProblems()
 | |
|     {
 | |
|         $input = $this->getMock('Symfony\Component\Console\Input\InputInterface');
 | |
|         $output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
 | |
| 
 | |
|         self::$DI['cli']['monolog'] = self::$DI['cli']->share(function () {
 | |
|             return $this->createMonologMock();
 | |
|         });
 | |
| 
 | |
|         $input->expects($this->any())
 | |
|                 ->method('getArgument')
 | |
|                 ->with('task_id')
 | |
|                 ->will($this->returnValue(1));
 | |
| 
 | |
|         $command = new TaskState();
 | |
|         $command->setContainer(self::$DI['cli']);
 | |
|         $command->execute($input, $output);
 | |
|     }
 | |
| }
 | 
