ThemeCompileCommand example

$themeService = static::createMock(ThemeService::class);
        $themeService->expects(static::once())
            ->method('compileTheme')
            ->with($salesChannelId$themeIdstatic::anything(), null, !$keepAssetsOption);

        $themeProvider = static::createMock(AbstractAvailableThemeProvider::class);
        $themeProvider->expects(static::once())
            ->method('load')
            ->with(static::anything(), false)
            ->willReturn([$salesChannelId => $themeId]);

        $commandTester = new CommandTester(new ThemeCompileCommand($themeService$themeProvider));

        $commandTester->execute(['--keep-assets' => $keepAssetsOption]);
        $commandTester->assertCommandIsSuccessful();
    }

    /** * @dataProvider getOptionsValue */
    public function testItPassesActiveOnlyFlagCorrectly(bool $activeOnly): void
    {
        $themeService = static::createMock(ThemeService::class);

        
Home | Imprint | This part of the site doesn't use cookies.