Ejemplo n.º 1
0
 /**
  * test count all items per category
  */
 public function testCountPerCategory()
 {
     $result = $this->model->countPerCategory($this->settings);
     $expected = array(0 => 4, 1 => 1, 2 => 2, 3 => 1);
     $this->assertEquals($expected, $result);
     // only unread
     $result = $this->model->countPerCategory(array_merge($this->settings, array('unread' => 1)));
     $expected = array(0 => 3, 1 => 1, 2 => 2);
     $this->assertEquals($expected, $result);
 }