Пример #1
0
 public function testExportPostsServiceUserRepliedTo()
 {
     $more_data = array();
     $more_data[] = FixtureBuilder::build('posts', array('post_id' => 46, 'author_user_id' => 13, 'author_username' => 'ev', 'author_fullname' => 'Ev Williams', 'author_avatar' => 'avatar.jpg', 'post_text' => 'I am?', 'source' => 'web', 'pub_date' => '-1h', 'reply_count_cache' => rand(0, 4), 'is_protected' => 0, 'retweet_count_cache' => 0, 'network' => 'twitter', 'old_retweet_count_cache' => 0, 'in_rt_of_user_id' => null, 'in_reply_to_post_id' => 45, 'in_retweet_of_post_id' => null, 'is_geo_encoded' => 0));
     $replied_to_posts_exported = $this->dao->exportPostsServiceUserRepliedTo('ev', 'twitter');
     //1 replied-to posts exported
     $this->assertEqual($replied_to_posts_exported, 1);
 }