Пример #1
0
 public function testSetCategoryIds()
 {
     $p = new ae_PostModel();
     $p->setCategoryIds(array(4, 52, 921));
     $this->assertEquals($p->getCategoryIds(), array(4, 52, 921));
     $this->setExpectedException('Exception');
     $p->setCategoryIds(array(4, 52, -2));
 }