Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
isIndexCreated example
$this
->
removeIndexIfExists
(
)
;
}
/** * @throws DbalDriverException * @throws DbalException */
public
function
testOrderOrderNumberIndexWillBeAdded
(
)
: void
{
$this
->
executeMigration
(
)
;
static
::
assertTrue
(
$this
->
isIndexCreated
(
)
)
;
}
public
function
testRepetitiveMigrationExecution
(
)
: void
{
$e
= null;
try
{
$this
->
executeMigration
(
)
;
$this
->
executeMigration
(
)
;
}
catch
(
DbalException|DbalDriverException
$e
)
{
static
::
fail
(
$e
->
getMessage
(
)
)
;
}