Exemple #1
0
 public function setUp()
 {
     parent::setUp();
     $this->_post_id = $post_id = $this->factory->post->create();
     // let's associate comments to this new post
     $this->_top_level_comments = $this->__util_create_nested_comments_randomly($post_id);
     $instance = new SpotIM_Export();
     $exported_data = $instance->start($post_id);
     // save a local version of the current one
     $this->_exported_data = current($exported_data);
 }
 public function setUp()
 {
     parent::setUp();
     // add filter for the mock API class
     $this->spotim_instance = spotim_instance();
     // create a post to do the work on
     $this->_post_id = $post_id = $this->factory->post->create();
     // load JSON for main insertions
     $first_batch_data = $this->_read_json_file('sync-many-inserts.json');
     // fire up the sync class
     $this->first_batch_sync = new SpotIM_Sync($post_id, $first_batch_data);
     $this->first_batch_result = $this->first_batch_sync->sync();
 }
Exemple #3
0
 public function setUp()
 {
     parent::setUp();
     // add filter for the mock API class
     $this->spotim_instance = spotim_instance();
 }