Skip to content

Commit 57e51bd

Browse files
Update MakeMigrationTest.php
Add test for nowdoc param
1 parent 80ee1fd commit 57e51bd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Maker/MakeMigrationTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,16 @@ public function getTestDetails(): \Generator
142142
$this->assertStringContainsString('Success', $output);
143143
}),
144144
];
145+
146+
yield 'it_generates_a_nowdoc_migration' => [$this->createMakeMigrationTest()
147+
->addRequiredPackageVersion('doctrine/doctrine-migrations-bundle', '>=3')
148+
->run(function (MakerTestRunner $runner) {
149+
$runner->runConsole('make:migration', [], '--nowdoc');
150+
151+
$output = $runner->runMaker([/* no input */]);
152+
153+
$this->assertStringContainsString('Success', $output);
154+
}),
155+
];
145156
}
146157
}

0 commit comments

Comments
 (0)