1111
1212namespace Symfony \Bundle \MakerBundle \Tests \Maker ;
1313
14+ use Doctrine \Bundle \MigrationsBundle \Command \MigrationsDiffDoctrineCommand ;
1415use Symfony \Bundle \MakerBundle \Maker \MakeMigration ;
1516use Symfony \Bundle \MakerBundle \Test \MakerTestCase ;
1617use Symfony \Bundle \MakerBundle \Test \MakerTestDetails ;
@@ -67,16 +68,16 @@ public function getTestDetails()
6768 // confirm migration
6869 'y ' ,
6970 ])
70- ->setFixtureFilesPath (__DIR__ . '/../fixtures/MakeMigration ' )
71+ ->setFixtureFilesPath (__DIR__ . '/../fixtures/MakeMigration ' )
7172 ->configureDatabase (false )
73+ ->addRequiredPackageVersion ('doctrine/doctrine-migrations-bundle ' , '>=3 ' )
7274 ->addExtraDependencies ('doctrine/orm:@stable ' )
7375 // generate a migration first
7476 ->addPreMakeCommand ('php bin/console make:migration ' )
7577 ->assert (function (string $ output , string $ directory ) {
7678 $ this ->assertStringContainsString ('You have 1 available migrations to execute ' , $ output );
7779 $ this ->assertStringContainsString ('Success ' , $ output );
7880 $ this ->assertCount (14 , explode ("\n" , $ output ), 'Asserting that very specific output is shown - some should be hidden ' );
79- var_dump ($ output );
8081 }),
8182 ];
8283
@@ -86,8 +87,9 @@ public function getTestDetails()
8687 // no to confirm
8788 'n ' ,
8889 ])
89- ->setFixtureFilesPath (__DIR__ . '/../fixtures/MakeMigration ' )
90+ ->setFixtureFilesPath (__DIR__ . '/../fixtures/MakeMigration ' )
9091 ->configureDatabase (false )
92+ ->addRequiredPackageVersion ('doctrine/doctrine-migrations-bundle ' , '>=3 ' )
9193 ->addExtraDependencies ('doctrine/orm:@stable ' )
9294 // generate a migration first
9395 ->addPreMakeCommand ('php bin/console make:migration ' )
0 commit comments