Fixes for tests

This commit is contained in:
David Bomba 2024-09-03 08:20:32 +10:00
parent ada65c8da9
commit a45dcc5580
2 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@
] ]
}, },
"resources/js/app.js": { "resources/js/app.js": {
"file": "assets/app-234e3402.js", "file": "assets/app-e0713224.js",
"imports": [ "imports": [
"_index-08e160a7.js", "_index-08e160a7.js",
"__commonjsHelpers-725317a4.js" "__commonjsHelpers-725317a4.js"

View File

@ -181,6 +181,8 @@ class DocumentsApiTest extends TestCase
'user_id' => $this->user->id, 'user_id' => $this->user->id,
]); ]);
$this->invoice->documents()->save($d);
$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,