mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 07:34:34 -04:00
Verbose error messaging in tests
This commit is contained in:
parent
d3c8060dfb
commit
ec66a4fdc5
@ -109,18 +109,19 @@ class UserTest extends TestCase
|
|||||||
|
|
||||||
$response = false;
|
$response = false;
|
||||||
|
|
||||||
// try {
|
try {
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
'X-API-TOKEN' => $this->token,
|
'X-API-TOKEN' => $this->token,
|
||||||
'X-API-PASSWORD' => 'ALongAndBriliantPassword',
|
'X-API-PASSWORD' => 'ALongAndBriliantPassword',
|
||||||
])->post('/api/v1/users?include=company_user', $data);
|
])->post('/api/v1/users?include=company_user', $data);
|
||||||
|
|
||||||
// } catch (ValidationException $e) {
|
} catch (ValidationException $e) {
|
||||||
// $message = json_decode($e->validator->getMessageBag(), 1);
|
$message = json_decode($e->validator->getMessageBag(), 1);
|
||||||
// nlog($message);
|
nlog($message);
|
||||||
// $this->assertNotNull($message);
|
var_dump($message);
|
||||||
// }
|
$this->assertNotNull($message);
|
||||||
|
}
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user