Gate testing API for staging E2E
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-03 15:00:33 +01:00
parent 030a00ba46
commit 7ea34b3b20
17 changed files with 94 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ class TestMailboxController extends Controller
{
public function index(): JsonResponse
{
abort_unless(app()->environment(['local', 'testing']), 404);
abort_unless(config('e2e.testing_enabled'), 404);
return response()->json([
'data' => Mailbox::all(),
@@ -19,7 +19,7 @@ class TestMailboxController extends Controller
public function destroy(): JsonResponse
{
abort_unless(app()->environment(['local', 'testing']), 404);
abort_unless(config('e2e.testing_enabled'), 404);
Mailbox::flush();