Tests/Services/SearchServiceTest.php
changeset 63 774ba82dca59
parent 57 186c4121c7b3
child 68 e7384fb35f7a
equal deleted inserted replaced
62:10be6b9e55e7 63:774ba82dca59
    46     public function testCompletion()
    46     public function testCompletion()
    47     {
    47     {
    48     
    48     
    49         $search_service = $this->get("wiki_tag.search");
    49         $search_service = $this->get("wiki_tag.search");
    50     
    50     
    51         $result = $search_service->completion("fra");
    51         $result = $search_service->completion("tag");
    52     
    52     
    53         $this->assertNotNull($result, "tag cloud should not be null");
    53         $this->assertNotNull($result, "tag cloud should not be null");
    54         $this->assertGreaterThanOrEqual(1, count($result));
    54         $this->assertEquals(4, count($result));
    55     }
    55     }
    56     
    56     
    57     
    57     
    58 }
    58 }
    59 
    59