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