Procházet zdrojové kódy

Merge pull request #380 from wackazong/patch-2

Add test for filter in condition with strings
Maurits van der Schee před 6 roky
rodič
revize
62f8d2f08a
No account linked to committer's email address
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 7
    0
      tests/Tests.php

+ 7
- 0
tests/Tests.php Zobrazit soubor

@@ -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);

Loading…
Zrušit
Uložit