Skip to content

Commit 01694d1

Browse files
Add extra test
1 parent 766db08 commit 01694d1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/FilterTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ public function it_can_filter_models_by_partial_property_by_default()
3939
$this->assertCount(1, $models);
4040
}
4141

42+
/** @test */
43+
public function it_can_filter_models_by_an_array_as_filter_value()
44+
{
45+
$models = $this
46+
->createQueryFromFilterRequest([
47+
'name' => ['first' => $this->models->first()->name],
48+
])
49+
->allowedFilters('name')
50+
->get();
51+
52+
$this->assertCount(1, $models);
53+
}
54+
4255
/** @test */
4356
public function it_can_filter_partially_and_case_insensitive()
4457
{

0 commit comments

Comments
 (0)