public function setUp()
 {
     parent::setUp();
     $this->client->reset_data();
     wp_set_current_user(1);
     $this->client->do_sync();
 }
 public function setUp()
 {
     parent::setUp();
     $comment_ids = $this->factory->comment->create_post_comments($this->factory->post->create());
     $this->comment = get_comment($comment_ids[0]);
     $this->client->do_sync();
 }
 public function setUp()
 {
     parent::setUp();
     $this->client->set_options_whitelist(array('test_option'));
     add_option('test_option', 'foo');
     $this->client->do_sync();
 }
 public function setUp()
 {
     parent::setUp();
     // create a user
     $this->user_id = $this->factory->user->create();
     $this->client->do_sync();
 }
 public function setUp()
 {
     parent::setUp();
     // create a post
     $this->post_id = $this->factory->post->create();
     add_post_meta($this->post_id, 'test_meta_key', 'foo');
     $this->client->do_sync();
 }
 public function setUp()
 {
     parent::setUp();
     $themes = array('twentyten', 'twentyeleven', 'twentytwelve', 'thwentythirteen', 'twentyfourteen');
     $this->theme = $themes[rand(0, 4)];
     switch_theme($this->theme);
     $this->client->do_sync();
 }
 public function setUp()
 {
     parent::setUp();
     // create a post
     $post_id = $this->factory->post->create();
     $this->post = get_post($post_id);
     $this->client->do_sync();
 }
 public function setUp()
 {
     parent::setUp();
     $this->client->reset_data();
     $this->taxonomy = 'genre';
     register_taxonomy($this->taxonomy, 'post', array('label' => __('Genre'), 'rewrite' => array('slug' => $this->taxonomy), 'hierarchical' => true));
     $this->client->set_taxonomy_whitelist(array($this->taxonomy));
     // create a post
     $this->post_id = $this->factory->post->create();
     $this->term_object = wp_insert_term('dog', $this->taxonomy);
     $this->client->do_sync();
 }
 public function setUp()
 {
     global $wp_version;
     parent::setUp();
     if (version_compare($wp_version, '4.4', '>=')) {
         add_filter('get_site_icon_url', array($this, '_get_site_icon'), 99, 3);
         update_option('site_icon', '5');
     } else {
         // wp 4.3 or less
         Jetpack_Options::update_option('site_icon_url', 'http://foo.com/icon.gif');
     }
     $this->client->do_sync();
 }
 function setUp()
 {
     parent::setUp();
     $this->full_sync = Jetpack_Sync_Full::getInstance();
 }
 public function tearDown()
 {
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
 }