printf("STARTING ForumPost UNIT TESTS\n"); printf("/////////////////////////////////\n"); //construct empty forum post $forumPost = new ForumPost(); //add post $forumPost->createPost(1895578464, "kmassey", "This is a forum post."); //delete post $forumPost->deletePost(); //fetch existing forumPost $forumPost2 = new ForumPost(1667447439); //fetch content of existing forum post $post_content = $forumPost2->getPostContent(); printf("Fetched Post: %s\n", $post_content); //block forum post printf("Blocking post %d\n", 1667447439); $forumPost2->block(); $isBlocked = $forumPost2->isBlocked(); $bool_str = $isBlocked ? "true" : "false"; printf("Forum Post %d is blocked: %s\n", 1667447439, $bool_str); //unblock forum post printf("Unblocking post %d\n", 1667447439); $forumPost2->unblock(); $isBlocked = $forumPost2->isBlocked(); $bool_str = $isBlocked ? "true" : "false"; printf("Forum Post %d is blocked: %s\n", 1667447439, $bool_str); //////////////////////////// //DocumentManager UNIT TESTS //////////////////////////// printf("/////////////////////////////////\n"); printf("STARTING ForumManager UNIT TESTS\n"); printf("/////////////////////////////////\n");