function testCommentApproval() { $kramer_quote = "Oh, you gotta eat before surgery. You need your strength."; $post_id = $this->factory->post->create(); $comment_id = $this->factory->comment->create(array('comment_post_ID' => $post_id, 'comment_content' => $kramer_quote)); $comment = new TimberComment($comment_id); $comment->assertTrue($comment->approved()); $comment_id = $this->factory->comment->create(array('comment_post_ID' => $post_id, 'comment_content' => 'You ever dream in 3-D? It’s like the Boogie Man is coming RIGHT AT YOU.', 'comment_approved' => false)); $comment = new TimberComment($comment_id); $comment->assertFalse($comment->approved()); }