Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
changeDefaultLanguageToDutch example
$mailTemplateTypeId
=
$this
->
getMailTemplateTypeId
(
)
;
static
::
assertNotNull
(
$mailTemplateTypeId
)
;
static
::
assertNotNull
(
$this
->
getMailTemplateId
(
$mailTemplateTypeId
)
)
;
}
public
function
testNewMailTemplatesAreAddedWithoutGermanAndEnglishLanguage
(
)
: void
{
// Rollback migration data and make sure its gone
$this
->
rollbackMigrationChanges
(
)
;
static
::
assertNull
(
$this
->
getMailTemplateTypeId
(
)
)
;
$this
->
changeDefaultLanguageToDutch
(
)
;
// Rerun migration and make sure everything is added again
$migration
=
new
Migration1672931011ReviewFormMailTemplate
(
)
;
$migration
->
update
(
$this
->connection
)
;
$mailTemplateTypeId
=
$this
->
getMailTemplateTypeId
(
)
;
static
::
assertNotNull
(
$mailTemplateTypeId
)
;
static
::
assertNotNull
(
$this
->
getMailTemplateId
(
$mailTemplateTypeId
)
)
;
}
public
function
testMigrationWithExistingTemplateData
(
)
: void
{