|
@@ -391,6 +391,13 @@ abstract class Tests extends TestBase
|
391
|
391
|
$test->expect('{"posts":[{"id":5,"user_id":1,"category_id":1,"content":"#1"},{"id":6,"user_id":1,"category_id":1,"content":"#2"}]}');
|
392
|
392
|
}
|
393
|
393
|
|
|
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
|
+
|
394
|
401
|
public function testFilterPostsBetween()
|
395
|
402
|
{
|
396
|
403
|
$test = new Api($this);
|