Exemplo n.º 1
0
 public function testSearchByPhrase()
 {
     $api = new Records();
     $api->setParamsData(array('search_phrase' => 'short'));
     $result = $api->exec();
     $this->AssertEquals(3, sizeof($result));
 }
Exemplo n.º 2
0
 public function testValueReflectsViews()
 {
     $api = new NewMessages();
     $this->assertEquals(self::DefaultNewCount, $api->exec());
     //
     $recordsApi = new Records();
     $recordsApi->setParamsData(array('limit' => 1));
     $recordsApi->exec();
     //
     $api = new NewMessages();
     $this->assertEquals(self::DefaultNewCount - 1, $api->exec());
 }