Skip to content

Commit dd4325a

Browse files
committed
test: fetch a collection with a non-existing relation iri filter
1 parent af5e361 commit dd4325a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Functional/Parameters/IriFilterTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ public static function getResources(): array
4040
public function testIriFilter(): void
4141
{
4242
$client = $this->createClient();
43+
4344
$res = $client->request('GET', '/chickens?chickenCoop=/chicken_coops/2')->toArray();
4445
$this->assertCount(1, $res['member']);
4546
$this->assertEquals('/chicken_coops/2', $res['member'][0]['chickenCoop']);
47+
48+
$res = $client->request('GET', '/chickens?chickenCoop=/chicken_coops/595')->toArray();
49+
$this->assertCount(0, $res['member']);
4650
}
4751

4852
public function testIriFilterMultiple(): void

0 commit comments

Comments
 (0)