mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fixes for tests
This commit is contained in:
parent
c06c18affc
commit
aee6fe6dc9
2
composer.lock
generated
2
composer.lock
generated
@ -20755,5 +20755,5 @@
|
|||||||
"platform-dev": {
|
"platform-dev": {
|
||||||
"php": "^8.2"
|
"php": "^8.2"
|
||||||
},
|
},
|
||||||
"plugin-api-version": "2.3.0"
|
"plugin-api-version": "2.6.0"
|
||||||
}
|
}
|
||||||
|
@ -1872,6 +1872,7 @@ class PaymentTest extends TestCase
|
|||||||
'date' => '2020/12/12',
|
'date' => '2020/12/12',
|
||||||
'number' => 'duplicate',
|
'number' => 'duplicate',
|
||||||
];
|
];
|
||||||
|
sleep(1);
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
'X-API-SECRET' => config('ninja.api_secret'),
|
'X-API-SECRET' => config('ninja.api_secret'),
|
||||||
@ -1879,7 +1880,7 @@ class PaymentTest extends TestCase
|
|||||||
])->postJson('/api/v1/payments', $data);
|
])->postJson('/api/v1/payments', $data);
|
||||||
|
|
||||||
$response->assertStatus(200);
|
$response->assertStatus(200);
|
||||||
|
sleep(1);
|
||||||
$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,
|
||||||
|
Loading…
Reference in New Issue
Block a user