I have Laravel framework v5.8.29
.
And I can't run artisan command in a unit test either using $this->artisan()
nor Artisan::call()
.
migrate
command prints absolutely nothing.
It seems like the command just even was not called!
But it works pretty well if I call the command from the system, using php artisan migrate
.
Example: https://travis-ci.com/github/CaliforniaMountainSnake/laravel-database-test-case/builds/171804872
As you can see, at first I call php artisan migrate
directly and it works as expected. But then I call the same command from the unit test and it just doesn't work. A second time I call migrate
command with another empty database, so the first call doesn't affect the second (You can see the proof of that, TABLES of "test_mysql"
returns nothing).
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire