Skip to content

Commit 849879e

Browse files
authored
Add test for filter in condition with strings
That seems to work fine, so I thought I might as well add a test and document it in the README.
1 parent b7123a9 commit 849879e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Tests.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,13 @@ public function testFilterPostsNotIn()
391391
$test->expect('{"posts":[{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"}]}');
392392
}
393393

394+
public function testFilterCommentsStringIn()
395+
{
396+
$test = new Api($this);
397+
$test->get('/comments?filter=message,in,fantastic,thank you&transform=1');
398+
$test->expect('{"comments":[{"id":2,"post_id":1,"message":"fantastic"},{"id":3,"post_id":2,"message":"thank you"}]}');
399+
}
400+
394401
public function testFilterPostsBetween()
395402
{
396403
$test = new Api($this);

0 commit comments

Comments
 (0)