use Symfony\Component\DependencyInjection\ContainerInterface;
trait MigrationTestBehaviour
{ /**
* @before
*/
public function addMigrationSources(): void
{ $loader =
$this->
getContainer()->
get(MigrationCollectionLoader::
class);
$loader->
addSource( new MigrationSource( '_test_migrations_invalid_namespace',
[__DIR__ . '/_test_migrations_invalid_namespace' => 'Shopware\Core\Framework\Test\Migration\_test_migrations_invalid_namespace'
] ) );
$loader->
addSource( new MigrationSource( '_test_migrations_valid',
[__DIR__ . '/_test_migrations_valid' => 'Shopware\Core\Framework\Test\Migration\_test_migrations_valid'
] ) );