Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setUpNode example
/** * {@inheritdoc} */
protected
function
setUp
(
)
: void
{
parent::
setUp
(
)
;
$this
->
setupLanguages
(
)
;
$this
->vocabulary =
$this
->
createVocabulary
(
)
;
$this
->
enableTranslation
(
)
;
$this
->
setUpTerm
(
)
;
$this
->
setUpTermReferenceField
(
)
;
$this
->
setUpNode
(
)
;
}
/** * Tests if the translated taxonomy term is displayed. */
public
function
testTranslatedTaxonomyTermReferenceDisplay
(
)
{
$path
= 'node/' .
$this
->node->
id
(
)
;
$translation_path
=
$this
->translateToLangcode . '/' .
$path
;
$this
->
drupalGet
(
$path
)
;
$this
->
assertSession
(
)
->
pageTextNotContains
(
$this
->translatedTagName
)
;