Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getListingResponseFixture example
static
::
assertNull
(
$extension
->
getVersion
(
)
)
;
static
::
assertEquals
(
$listingResponse
[
'name'
]
,
$extension
->
getName
(
)
)
;
static
::
assertEquals
(
$listingResponse
[
'label'
]
,
$extension
->
getLabel
(
)
)
;
static
::
assertInstanceOf
(
VariantCollection::
class
,
$extension
->
getVariants
(
)
)
;
static
::
assertInstanceOf
(
ImageCollection::
class
,
$extension
->
getImages
(
)
)
;
static
::
assertInstanceOf
(
BinaryCollection::
class
,
$extension
->
getBinaries
(
)
)
;
}
public
function
testLoadsExtensionsFromListingArray
(
)
: void
{
$listingResponse
=
$this
->
getListingResponseFixture
(
)
;
$extensions
=
$this
->extensionLoader->
loadFromListingArray
(
Context::
createDefaultContext
(
)
,
$listingResponse
)
;
static
::
assertInstanceOf
(
ExtensionCollection::
class
,
$extensions
)
;
static
::
assertCount
(
2,
$extensions
)
;
}
public
function
testItLoadsExtensionsFromPlugins
(
)
: void
{