LoginSignup
1
2

More than 3 years have passed since last update.

【Laravel】DBのテストを実行しようとしたらBadMethodCallException

Last updated at Posted at 2019-10-01
Mockery\Exception\BadMethodCallException : Received Mockery_1_Illuminate_Console_OutputStyle::askQuestion(), but no expectations were specified

キャッシュをクリアしたら動いてくれた。

php artisan config:clear

テスト実行前には、config:clear Artisanコマンドを実行し、設定キャッシュをクリアするのを忘れないでください。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2