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); }