How to load migrations for a test from inside a package?
Using the standard Filament plugin service provider by Spatie where the migrations are stored in
.php.stub
without the timestamp prefix.
But how do you load the migrations in order for testing?
I don't want to duplicate them and have tried passing the exact file paths but this gives the error:
The "1" argument does not exist. at vendor/symfony/console/Input/ArrayInput.php:188
3 Replies
.php.stub files get copied over into your app, with a timestamp
i dont know why youre using them directly?
there should be a command that copies them and renames them to normal .php files
What's the correct procedure for migrating them into the test database?
Do I need to manually copy them over each time to the tests/database/migrations folder and delete them afterwards?
In a test suite you would have already published them and it should be automated as part of your deployment