mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 09:24:30 -04:00
Fixes for email templates
This commit is contained in:
parent
95e4cc7afc
commit
911738c443
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user