回答編集履歴
1
微修正
answer
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
公式サイトに注意書きがあります。
|
2
|
-
|
3
1
|
> テストを実行する前は必ず`config:clear` Artisanコマンドを使用して設定のキャッシュをクリアしてください。
|
4
2
|
|
3
|
+
と公式サイトに注意書きがあります。
|
4
|
+
|
5
5
|
```
|
6
6
|
$ php artisan config:clear
|
7
|
+
$ php artisan test
|
7
8
|
```
|
8
9
|
|
9
|
-
してからphpunitを実行してください。
|
10
10
|
`config:cache` を実行してしまうと `.env.testing` ではなく `.env` の内容が反映されてしまいます。
|
11
11
|
|
12
12
|
[https://readouble.com/laravel/8.x/ja/testing.html#environment](https://readouble.com/laravel/8.x/ja/testing.html#environment)
|