public function testSetCommentsStatus() { $p = new ae_PageModel(); $p->setCommentsStatus(ae_PageModel::COMMENTS_DISABLED); $this->assertTrue($p->getCommentsStatus() === ae_PageModel::COMMENTS_DISABLED); $this->setExpectedException('Exception'); $p->setCommentsStatus(TRUE); }