mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed tests.
This commit is contained in:
parent
ea302ded91
commit
3866082cb7
1 changed files with 7 additions and 1 deletions
|
@ -40,10 +40,16 @@ class DatatablesAvailabilityTest extends WebTestCase
|
|||
'PHP_AUTH_USER' => 'admin',
|
||||
'PHP_AUTH_PW' => 'test',
|
||||
]);
|
||||
|
||||
$client->catchExceptions(false);
|
||||
$client->request('GET', $url);
|
||||
$this->assertTrue($client->getResponse()->isSuccessful(), 'Request not successful. Status code is '.$client->getResponse()->getStatusCode());
|
||||
|
||||
static::ensureKernelShutdown();
|
||||
$client = static::createClient([], [
|
||||
'PHP_AUTH_USER' => 'admin',
|
||||
'PHP_AUTH_PW' => 'test',
|
||||
]);
|
||||
$client->catchExceptions(false);
|
||||
$client->request('POST', $url, ['_dt' => 'dt']);
|
||||
$this->assertTrue($client->getResponse()->isSuccessful());
|
||||
$this->assertJson($client->getResponse()->getContent());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue