Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
doTestTranslationEdit example
protected
$defaultCacheContexts
=
[
'languages:language_interface', 'theme', 'url.query_args:_wrapper_format', 'user.permissions'
]
;
/** * Tests the basic translation UI. */
public
function
testTranslationUI
(
)
{
$this
->
doTestBasicTranslation
(
)
;
$this
->
doTestTranslationOverview
(
)
;
$this
->
doTestOutdatedStatus
(
)
;
$this
->
doTestPublishedStatus
(
)
;
$this
->
doTestAuthoringInfo
(
)
;
$this
->
doTestTranslationEdit
(
)
;
$this
->
doTestTranslationChanged
(
)
;
$this
->
doTestChangedTimeAfterSaveWithoutChanges
(
)
;
$this
->
doTestTranslationDeletion
(
)
;
}
/** * Tests the basic translation workflow. */
protected
function
doTestBasicTranslation
(
)
{
// Create a new test entity with original values in the default language.
$default_langcode
=
$this
->langcodes
[
0
]
;