1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Fixes for tests

This commit is contained in:
David Bomba 2024-06-18 14:52:20 +10:00
parent c06c18affc
commit aee6fe6dc9
2 changed files with 3 additions and 2 deletions

2
composer.lock generated
View File

@ -20755,5 +20755,5 @@
"platform-dev": {
"php": "^8.2"
},
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}

View File

@ -1872,6 +1872,7 @@ class PaymentTest extends TestCase
'date' => '2020/12/12',
'number' => 'duplicate',
];
sleep(1);
$response = $this->withHeaders([
'X-API-SECRET' => config('ninja.api_secret'),
@ -1879,7 +1880,7 @@ class PaymentTest extends TestCase
])->postJson('/api/v1/payments', $data);
$response->assertStatus(200);
sleep(1);
$response = $this->withHeaders([
'X-API-SECRET' => config('ninja.api_secret'),
'X-API-TOKEN' => $this->token,