Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
dropAccountType example
$this
->connection->
executeStatement
(
'DELETE FROM `customer`'
)
;
}
public
function
testTimestampIsCorrect
(
)
: void
{
$migration
=
new
Migration1676272000AddAccountTypeToCustomer
(
)
;
static
::
assertEquals
(
'1676272000',
$migration
->
getCreationTimestamp
(
)
)
;
}
public
function
testAddAccountType
(
)
: void
{
$this
->
dropAccountType
(
)
;
$migration
=
new
Migration1676272000AddAccountTypeToCustomer
(
)
;
$migration
->
update
(
$this
->connection
)
;
static
::
assertTrue
(
EntityDefinitionQueryHelper::
columnExists
(
$this
->connection, 'customer', 'account_type'
)
)
;
}
public
function
testAddAccountTypeMultiple
(
)
: void
{
$this
->
dropAccountType
(
)
;