function testComments() { $post_id = $this->factory->post->create(array('post_title' => 'Gobbles')); $comment_id_array = $this->factory->comment->create_many(5, array('comment_post_ID' => $post_id)); $post = new TimberPost($post_id); $this->assertEquals(5, count($post->comments())); $this->assertEquals(5, $post->get_comment_count()); }