File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,12 @@ FACE_AI_API_KEY="${COMMON_API_KEY}"
170170
171171# DUSK_DRIVER_URL=
172172
173+ # Do not create manuals in Dusk.
174+ # DUSK_NO_MANUAL=true
175+
176+ # Do not run API tests in Dusk.
177+ # DUSK_NO_API_TEST=true
178+
173179# dusk use uploads dir.
174180# UPLOADS_DIRECTORY_BASE=uploads_dusk/
175181
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ protected function setUp(): void
108108 });
109109 }
110110
111+ // Laravel9以前
111112 // コマンドライン引数 第5(配列インデックス4)に no_manual が指定されていた場合は、マニュアル作成しない。
112113 if ($ _SERVER && count ($ _SERVER ['argv ' ]) > 4 ) {
113114 if ($ _SERVER ['argv ' ][4 ] == 'no_manual ' ) {
@@ -119,6 +120,17 @@ protected function setUp(): void
119120 }
120121 }
121122
123+ // Laravel 10対応(phpunit 10.x) dusk実行時のコマンドライン引数はテストクラスのパスと認識されるため、envで対応
124+ // .envの DUSK_NO_MANUAL に何か値が指定されていた場合は、マニュアル作成しない。
125+ if (env ('DUSK_NO_MANUAL ' )) {
126+ $ this ->no_manual = true ;
127+ }
128+
129+ // .envの DUSK_NO_API_TEST に何か値が指定されていた場合は、APIテストを実行しない。
130+ if (env ('DUSK_NO_API_TEST ' )) {
131+ $ this ->no_api_test = true ;
132+ }
133+
122134/* 一旦コメントアウト。データのクリアは、意識して行いたいかもしれないので。
123135
124136 // テスト実行のタイミングで一度だけ実行する
You can’t perform that action at this time.
0 commit comments