Skip to content

Commit 62f8d2f

Browse files
authored
Merge pull request #380 from wackazong/patch-2
Add test for filter in condition with strings
2 parents ec4e5cf + 849879e commit 62f8d2f

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)