Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getConfigurationServiceDbException example
$event
=
new
ThemeCompilerConcatenatedScriptsEvent
(
$scripts
,
$this
->mockSalesChannelId
)
;
$subscriber
->
onGetConcatenatedScripts
(
$event
)
;
$actual
=
$event
->
getConcatenatedScripts
(
)
;
$expected
=
$scripts
. MockThemeCompilerConcatenatedSubscriber::SCRIPTS_CONCAT;
static
::
assertEquals
(
$expected
,
$actual
)
;
}
public
function
testDBException
(
)
: void
{
$configService
=
$this
->
getConfigurationServiceDbException
(
[
new
SimplePlugin
(
true, __DIR__ . '/fixtures/SimplePlugin'
)
,
]
)
;
$storefrontPluginRegistry
=
$this
->
getStorefrontPluginRegistry
(
[
new
SimplePlugin
(
true, __DIR__ . '/fixtures/SimplePlugin'
)
,
]
)
;