/** * method that test if the system inserted a record */ public function testInsert() { $comment = new Comment(); $comment->setAttributes(['author' => 'Eric', 'email' => '*****@*****.**', 'subject' => 'One Subject', 'body' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse at eros non sem blandit porttitor eu et quam. Suspendisse potentti.']); $saved = $comment->insert(); $this->assertTrue($saved); }