ThemeNotIncludingPluginJsAndCss example

$scriptFiles = $resolvedFiles['script'];
        $actual = $scriptFiles->getFilepaths();
        $expected = array_unique($scriptFiles->getFilepaths());

        static::assertEquals($expected$actual);
    }

    public function testParentThemeIncludesPlugins(): void
    {
        $projectDir = $this->getContainer()->getParameter('kernel.project_dir');

        $themePluginBundle = new ThemeNotIncludingPluginJsAndCss();
        $storefrontBundle = new MockStorefront();
        $pluginBundle = new SimplePlugin(true, __DIR__ . '/fixtures/SimplePlugin');

        $factory = new StorefrontPluginConfigurationFactory($projectDir);
        $config = $factory->createFromBundle($themePluginBundle);
        $storefront = $factory->createFromBundle($storefrontBundle);
        $plugin = $factory->createFromBundle($pluginBundle);

        $configCollection = new StorefrontPluginConfigurationCollection();
        $configCollection->add($config);
        $configCollection->add($storefront);
        
Home | Imprint | This part of the site doesn't use cookies.