Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getCustomEntities example
private
array
$customEntities
;
protected
function
setUp
(
)
: void
{
parent::
setUp
(
)
;
$this
->customEntityEnrichmentService =
new
CustomEntityEnrichmentService
(
new
AdminUiXmlSchemaValidator
(
)
)
;
$this
->entitySchema =
$this
->
getCustomEntities
(
)
;
$this
->adminUiXmlSchema =
$this
->
getAdminUiXmlSchema
(
)
;
/** @var Entities $outerEntities */
$outerEntities
=
$this
->entitySchema->
getEntities
(
)
;
$this
->customEntities =
$outerEntities
->
getEntities
(
)
;
}
public
function
testEnrichCmsAwareAffectedEntities
(
)
: void
{
static
::
markTestSkipped
(
'cms-aware will be re-implemented via NEXT-22697'
)
;
static
::
assertCount
(
4,
$this
->customEntities
)
;