Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setUpEntityReferenceField example
$this
->originalLabel =
$this
->
randomMachineName
(
)
;
$this
->translatedLabel =
$this
->
randomMachineName
(
)
;
$this
->
setUpLanguages
(
)
;
// We setup languages, so we need to ensure that the language manager // and language path processor is updated.
$this
->
rebuildContainer
(
)
;
$this
->
setUpContentTypes
(
)
;
$this
->
enableTranslation
(
)
;
$this
->
setUpEntityReferenceField
(
)
;
$this
->
createContent
(
)
;
$this
->webUser =
$this
->
drupalCreateUser
(
[
'edit any ' .
$this
->referrerType->
id
(
)
. ' content',
]
)
;
}
/** * Tests if the entity is displayed in an entity reference field. */
public
function
testEntityReferenceDisplay
(
)
{