Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
MigrationCollectionFactory example
use
Shopware\Core\TestBootstrapper;
/** * @internal * * @covers \Shopware\Core\Installer\Database\MigrationCollectionFactory */
class
MigrationCollectionFactoryTest
extends
TestCase
{
public
function
testGetMigrationCollectionLoader
(
)
: void
{
$factory
=
new
MigrationCollectionFactory
(
(
new
TestBootstrapper
(
)
)
->
getProjectDir
(
)
)
;
$loader
=
$factory
->
getMigrationCollectionLoader
(
$this
->
createMock
(
Connection::
class
)
)
;
static
::
assertArrayHasKey
(
'core',
$loader
->
collectAll
(
)
)
;
static
::
assertArrayHasKey
(
'core.V6_3',
$loader
->
collectAll
(
)
)
;
static
::
assertArrayHasKey
(
'core.V6_4',
$loader
->
collectAll
(
)
)
;
static
::
assertArrayHasKey
(
'core.V6_5',
$loader
->
collectAll
(
)
)
;
}
}