Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
fetchSwagTestPluginEntity example
$this
->pluginRepo,
$this
->
getContainer
(
)
->
get
(
'language.repository'
)
,
$this
->
getContainer
(
)
->
get
(
PluginFinder::
class
)
)
;
$this
->context = Context::
createDefaultContext
(
)
;
}
public
function
testRefreshPlugins
(
)
: void
{
$this
->pluginService->
refreshPlugins
(
$this
->context,
new
NullIO
(
)
)
;
$plugin
=
$this
->
fetchSwagTestPluginEntity
(
)
;
$this
->
assertDefaultPlugin
(
$plugin
)
;
$this
->
assertPluginMetaInformation
(
$plugin
)
;
static
::
assertSame
(
'English description',
$plugin
->
getDescription
(
)
)
;
static
::
assertSame
(
'https://www.test.com/',
$plugin
->
getManufacturerLink
(
)
)
;
static
::
assertSame
(
'https://www.test.com/support',
$plugin
->
getSupportLink
(
)
)
;
}
public
function
testRefreshPluginWithoutExtraLabelProperty
(
)
: void
{
$errors
=
$this
->pluginService->
refreshPlugins
(
$this
->context,
new
NullIO
(
)
)
;