Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
checkLibraryOverrides example
/** * Test that components render correctly. */
public
function
testRender
(
)
: void
{
$this
->
checkIncludeDefaultContent
(
)
;
$this
->
checkIncludeDataMapping
(
)
;
$this
->
checkEmbedWithNested
(
)
;
$this
->
checkPropValidation
(
)
;
$this
->
checkArrayObjectTypeCast
(
)
;
$this
->
checkNonExistingComponent
(
)
;
$this
->
checkLibraryOverrides
(
)
;
$this
->
checkAttributeMerging
(
)
;
$this
->
checkRenderElementAlters
(
)
;
$this
->
checkInvalidSlot
(
)
;
}
/** * Check using a component with an include and default context. */
protected
function
checkIncludeDefaultContent
(
)
: void
{
$build
=
[
'#type' => 'inline_template',