Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
CustomEntityLifecycleService example
$customEntityPersister
=
$this
->
createMock
(
CustomEntityPersister::
class
)
;
$customEntityPersister
->
expects
(
static
::
never
(
)
)
->
method
(
'update'
)
;
$customEntitySchemaUpdater
=
$this
->
createMock
(
CustomEntitySchemaUpdater::
class
)
;
$customEntitySchemaUpdater
->
expects
(
static
::
never
(
)
)
->
method
(
'update'
)
;
$adminUiXmlSchemaValidator
=
new
AdminUiXmlSchemaValidator
(
)
;
$customEntityEnrichmentService
=
new
CustomEntityEnrichmentService
(
$adminUiXmlSchemaValidator
)
;
$customEntityXmlSchemaValidator
=
new
CustomEntityXmlSchemaValidator
(
)
;
$customEntityLifecycleService
=
new
CustomEntityLifecycleService
(
$customEntityPersister
,
$customEntitySchemaUpdater
,
$customEntityEnrichmentService
,
$customEntityXmlSchemaValidator
,
'',
$this
->
createAppLoader
(
)
,
)
;
static
::
assertNull
(
$customEntityLifecycleService
->
updatePlugin
(
Uuid::
randomHex
(
)
, 'not/given'
)
)
;