Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getValidIconAsBase64 example
static
::
assertSame
(
'https://www.test.de/',
$plugin
->
getManufacturerLink
(
)
)
;
static
::
assertSame
(
'https://www.test.de/support',
$plugin
->
getSupportLink
(
)
)
;
}
private
function
assertPluginMetaInformation
(
PluginEntity
$plugin
)
: void
{
static
::
assertNotNull
(
$plugin
->
getCreatedAt
(
)
)
;
static
::
assertNull
(
$plugin
->
getUpdatedAt
(
)
)
;
static
::
assertNull
(
$plugin
->
getUpgradeVersion
(
)
)
;
static
::
assertNull
(
$plugin
->
getInstalledAt
(
)
)
;
static
::
assertNull
(
$plugin
->
getUpgradedAt
(
)
)
;
static
::
assertSame
(
$this
->
getValidIconAsBase64
(
)
,
$plugin
->
getIcon
(
)
)
;
static
::
assertSame
(
'shopware AG',
$plugin
->
getAuthor
(
)
)
;
static
::
assertSame
(
'(c) by shopware AG',
$plugin
->
getCopyright
(
)
)
;
static
::
assertSame
(
'MIT',
$plugin
->
getLicense
(
)
)
;
}
private
function
fetchSwagTestPluginEntity
(
?Context
$context
= null
)
: PluginEntity
{
if
(
$context
=== null
)
{
$context
=
$this
->context;
}