Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createProfile example
$this
->connection = KernelLifecycleManager::
getConnection
(
)
;
$profile
=
$this
->
fetchProfile
(
)
;
static
::
assertIsArray
(
$profile
)
;
$this
->oldMapping =
$profile
[
'mapping'
]
;
}
protected
function
tearDown
(
)
: void
{
$profile
=
$this
->
fetchProfile
(
)
;
if
(
!
$profile
)
{
$this
->
createProfile
(
)
;
}
}
public
function
testTimestampIsCorrect
(
)
: void
{
$migration
=
new
Migration1676272001AddAccountTypeToCustomerProfileImportExport
(
)
;
static
::
assertEquals
(
'1676272001',
$migration
->
getCreationTimestamp
(
)
)
;
}
public
function
testPreventUpdateIfProfileNotExists
(
)
: void
{