'ThemeWithoutStorefront' => 1, 'Storefront' => 1, 'PayPal' => 1, 'CustomProducts' => 1
],
['ThemeWithoutStorefront' => true, 'Storefront' => true
] );
static::
assertEquals(['CustomProducts', 'ThemeWithoutStorefront', 'PayPal'
],
array_keys($inheritance));
} public function testMultiInheritance(): void
{ $configs =
new StorefrontPluginConfigurationCollection([ $this->configFactory->
createFromBundle(new Storefront()),
$this->configFactory->
createFromBundle(new ThemeWithMultiInheritance(true, __DIR__ . '/fixtures/SimplePlugin'
)),
$this->configFactory->
createFromBundle($this->
getMockedPlugin('ThemeA', SimpleTheme::
class)),
$this->configFactory->
createFromBundle($this->
getMockedPlugin('ThemeB', SimpleTheme::
class)),
$this->configFactory->
createFromBundle($this->
getMockedPlugin('ThemeC', SimpleTheme::
class)),
// paypal is a plugin and should be registered
$this->configFactory->
createFromBundle($this->
getMockedPlugin('PayPal', SimplePlugin::
class)),
// theme d is not included in theme.json
$this->configFactory->
createFromBundle($this->
getMockedPlugin('ThemeD', SimpleTheme::
class)),
]);