| @@ 875-885 (lines=11) @@ | ||
| 872 | $this->assertTrue( isset( $range['comments']->count ) ); |
|
| 873 | } |
|
| 874 | ||
| 875 | function create_dummy_data_and_reset_sync_status() { |
|
| 876 | // lets create a bunch of posts |
|
| 877 | for ( $i = 0; $i < $this->test_posts_count; $i += 1 ) { |
|
| 878 | $post = $this->factory->post->create(); |
|
| 879 | } |
|
| 880 | // lets create a bunch of comments |
|
| 881 | $this->factory->comment->create_post_comments( $post, $this->test_comments_count ); |
|
| 882 | ||
| 883 | // reset the data before the full sync |
|
| 884 | $this->sender->reset_data(); |
|
| 885 | } |
|
| 886 | ||
| 887 | function record_full_sync_end_checksum( $checksum, $range ) { |
|
| 888 | // $checksum has been deprecated... |
|
| @@ 1072-1082 (lines=11) @@ | ||
| 1069 | $this->full_sync_start_config = $modules; |
|
| 1070 | } |
|
| 1071 | ||
| 1072 | function create_dummy_data_and_empty_the_queue() { |
|
| 1073 | // lets create a bunch of posts |
|
| 1074 | for ( $i = 0; $i < $this->test_posts_count; $i += 1 ) { |
|
| 1075 | $post = $this->factory->post->create(); |
|
| 1076 | } |
|
| 1077 | // lets create a bunch of comments |
|
| 1078 | $this->factory->comment->create_post_comments( $post, $this->test_comments_count ); |
|
| 1079 | ||
| 1080 | // reset the data before the full sync |
|
| 1081 | $this->sender->reset_data(); |
|
| 1082 | } |
|
| 1083 | ||
| 1084 | function test_full_sync_status_should_be_not_started_after_reset() { |
|
| 1085 | $this->create_dummy_data_and_empty_the_queue(); |
|