parent::
setUp();
$this->
addTestPluginToKernel( __DIR__ . '/../../../../Core/Framework/Test/Plugin/_fixture/plugins/SwagTest',
'SwagTest'
);
} public function testDoesNotAddPluginStorefrontConfigurationToConfigurationCollectionIfItIsAddedAlready(): void
{ $context = Context::
createDefaultContext();
$event =
new PluginPostActivateEvent( $this->
getPlugin(),
new ActivateContext( $this->
createMock(Plugin::
class),
$context,
'6.1.0',
'1.0.0',
$this->
createMock(MigrationCollection::
class) ) );
$storefrontPluginConfigMock =
new StorefrontPluginConfiguration('SwagTest'
);
// Plugin storefront config is already added here