fix: update ServerErrorResponseTest to use dynamic file paths for exceptions
All checks were successful
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 2m32s
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 2m47s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 2m43s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 2m49s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 2m57s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 1m50s
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 16m55s
🏗️✨ Build Workflow / 🖥️ 🔨 Build Migrations (push) Successful in 1m45s

This commit is contained in:
2025-12-01 15:48:52 -05:00
parent ba2beca107
commit 1ac5075b37

View File

@@ -24,7 +24,7 @@ class ServerErrorResponseTest extends Unit
'context' => [
'operation' => 'data_processing'
],
'file' => '/app/tests/Http/Responses/ServerErrorResponseTest.php',
'file' => $e->getFile(),
'line' => $e->getLine(),
'trace' => $e->getTrace(),
];
@@ -77,7 +77,7 @@ class ServerErrorResponseTest extends Unit
$expected = [
'status_code' => 1234,
'message' => 'A Test Error occurred.',
'file' => '/app/tests/Http/Responses/ServerErrorResponseTest.php',
'file' => $exception->getFile(),
'line' => $exception->getLine(),
'trace' => $exception->getTrace(),
'context' => [],