mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Improved DatatablesAvailabilityTest
This commit is contained in:
parent
cd9a303644
commit
2554120e6e
1 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,7 @@ class DatatablesAvailabilityTest extends WebTestCase
|
|||
]);
|
||||
$client->catchExceptions(false);
|
||||
$client->request('GET', $url);
|
||||
$this->assertTrue($client->getResponse()->isSuccessful(), 'Request not successful. Status code is '.$client->getResponse()->getStatusCode());
|
||||
$this->assertTrue($client->getResponse()->isSuccessful(), 'Request not successful. Status code is '.$client->getResponse()->getStatusCode() . ' for URL '.$url);
|
||||
|
||||
static::ensureKernelShutdown();
|
||||
$client = static::createClient([], [
|
||||
|
@ -70,5 +70,9 @@ class DatatablesAvailabilityTest extends WebTestCase
|
|||
yield ['/log/'];
|
||||
|
||||
yield ['/attachment/list'];
|
||||
|
||||
//Test using filters
|
||||
yield ['/category/1/parts?part_filter%5Bname%5D%5Boperator%5D=%3D&part_filter%5Bname%5D%5Bvalue%5D=BC547&part_filter%5Bcategory%5D%5Boperator%5D=INCLUDING_CHILDREN&part_filter%5Btags%5D%5Boperator%5D=ANY&part_filter%5Btags%5D%5Bvalue%5D=Test&part_filter%5Bsubmit%5D='];
|
||||
yield ['/category/1/parts?part_filter%5Bcategory%5D%5Boperator%5D=INCLUDING_CHILDREN&part_filter%5Bstorelocation%5D%5Boperator%5D=%3D&part_filter%5Bstorelocation%5D%5Bvalue%5D=1&part_filter%5BattachmentsCount%5D%5Boperator%5D=%3D&part_filter%5BattachmentsCount%5D%5Bvalue1%5D=3&part_filter%5Bsubmit%5D='];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue