rework of the e2e test suites

This commit is contained in:
Codex Agent
2025-11-19 22:23:33 +01:00
parent 8d2075bdd2
commit 0127114e59
32 changed files with 1593 additions and 124 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Http\Controllers\Testing;
use App\Http\Controllers\Controller;
use App\Testing\Mailbox;
use Illuminate\Http\JsonResponse;
class TestMailboxController extends Controller
{
public function index(): JsonResponse
{
abort_unless(app()->environment(['local', 'testing']), 404);
return response()->json([
'data' => Mailbox::all(),
]);
}
public function destroy(): JsonResponse
{
abort_unless(app()->environment(['local', 'testing']), 404);
Mailbox::flush();
return response()->json([
'status' => 'ok',
]);
}
}