From 911738c443f48bd5d61d687faccec501aa8c2ac2 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 5 Aug 2023 10:01:44 +1000 Subject: [PATCH] Fixes for email templates --- tests/Feature/InvoiceEmailTest.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/Feature/InvoiceEmailTest.php b/tests/Feature/InvoiceEmailTest.php index 8196c2ccce2d..9609840e8ae2 100644 --- a/tests/Feature/InvoiceEmailTest.php +++ b/tests/Feature/InvoiceEmailTest.php @@ -42,7 +42,7 @@ class InvoiceEmailTest extends TestCase $this->makeTestData(); - $this->withoutExceptionHandling(); + // $this->withoutExceptionHandling(); } @@ -58,17 +58,17 @@ class InvoiceEmailTest extends TestCase $response = false; - // try { + try { $response = $this->withHeaders([ 'X-API-SECRET' => config('ninja.api_secret'), 'X-API-TOKEN' => $this->token, ])->postJson('/api/v1/emails', $data); - // } catch (ValidationException $e) { - // $message = json_decode($e->validator->getMessageBag(), 1); - // nlog($message); - // } + } catch (ValidationException $e) { + $message = json_decode($e->validator->getMessageBag(), 1); + nlog($message); + } - $response->assertStatus(200); + $response->assertStatus(422); }