function setUp()
 {
     parent::setUp();
     /* Create and setup some comments for testing */
     $post_id = $this->factory->post->create();
     $this->factory->comment->create_post_comments($post_id, 10);
     $comments = get_comments(array('post_id' => $post_id));
     $query = new WP_Query();
     $query->comments = $comments;
     $GLOBALS['wp_query'] = $query;
 }
 function setUp()
 {
     parent::setUp();
     /* Create and setup a loop for testing */
     $post_ids = $this->factory->post->create_many(10);
     foreach ($post_ids as $post_id) {
         clean_post_cache($post_id);
     }
     $query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 3));
     $GLOBALS['wp_query'] = $query;
 }
 function tearDown()
 {
     remove_filter('seamless_default_theme_layout', array($this, 'switch_layout'));
     parent::tearDown();
 }