Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
doTestMultipleFieldRender example
// Set this field to be empty.
$values
[
$this
->fieldStorages
[
4
]
->
getName
(
)
]
=
[
[
'value' => NULL
]
]
;
$this
->nodes
[
$i
]
=
$this
->
createNode
(
$values
)
;
}
// Perform actual tests.
$this
->
doTestSimpleFieldRender
(
)
;
$this
->
doTestInaccessibleFieldRender
(
)
;
$this
->
doTestFormatterSimpleFieldRender
(
)
;
$this
->
doTestMultipleFieldRender
(
)
;
}
/** * Tests simple field rendering. */
public
function
doTestSimpleFieldRender
(
)
{
$view
= Views::
getView
(
'test_view_fieldapi'
)
;
$this
->
prepareView
(
$view
)
;
$view
->
preview
(
)
;
// Tests that the rendered fields match the actual value of the fields.