Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
hasIndex example
$this
->loader =
$this
->
getContainer
(
)
->
get
(
ProductConfiguratorLoader::
class
)
;
$this
->connection =
$this
->
getContainer
(
)
->
get
(
Connection::
class
)
;
}
public
function
testMigration
(
)
: void
{
$this
->connection->
rollBack
(
)
;
$this
->
revertMigration
(
)
;
$hasIndex
=
$this
->
hasIndex
(
)
;
static
::
assertFalse
(
$hasIndex
)
;
$this
->
executeMigration
(
)
;
$hasIndex
=
$this
->
hasIndex
(
)
;
static
::
assertTrue
(
$hasIndex
)
;
$this
->connection->
beginTransaction
(
)
;
}