Наследование: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Пример #1
0
 public function setUp()
 {
     $application = new Application($this->getContainer()->get('kernel'));
     $this->documentManager = $this->getContainer()->get('sulu_document_manager.document_manager');
     $this->documentRegistry = $this->getContainer()->get('sulu_document_manager.document_registry');
     $command = new ContentLocaleCopyCommand();
     $command->setApplication($application);
     $command->setContainer($this->getContainer());
     $this->tester = new CommandTester($command);
 }