ThemeChangeCommand example

$arguments[] = [
                $themes[0]['id'],
                $salesChannel->getId(),
                Context::createDefaultContext(),
            ];
        }

        $themeService = $this->createMock(ThemeService::class);
        $themeService->expects(static::exactly(\count($salesChannels)))
            ->method('assignTheme');

        $themeChangeCommand = new ThemeChangeCommand(
            $themeService,
            $this->pluginRegistry,
            $this->salesChannelRepository,
            $this->themeRepository
        );

        $commandTester = new CommandTester($themeChangeCommand);
        $application = new Application();
        $application->add($themeChangeCommand);

        $commandTester->execute([
            
Home | Imprint | This part of the site doesn't use cookies.