protected function createCommandTester() { $command = self::createCommand(); $tenant = new Tenant(); $tenant->setCode('123456'); $command->setContainer($this->getMockContainer($tenant)); return new CommandTester($command); }
/** * @param Tenant $tenant * @param $themeName */ protected function updateTenantReferenceToTheme(Tenant $tenant, $themeName) { $tenant->setThemeName(sprintf('swp/%s', $themeName)); $documentManager = $this->getContainer()->get('doctrine_phpcr.odm.document_manager'); $documentManager->flush(); }