Пример #1
0
 /**
  * test count items
  */
 public function testCount()
 {
     // count all
     $result = $this->model->countAll($this->settings);
     $this->assertEquals(4, $result);
     // count all unread
     $result = $this->model->countAll(array_merge($this->settings, array('unread' => 1)));
     $this->assertEquals(3, $result);
     // count starred
     $result = $this->model->countStarred($this->settings);
     $this->assertEquals(1, $result);
 }