@@ 25-35 (lines=11) @@ | ||
22 | private $test_posts_count = 20; |
|
23 | private $test_comments_count = 11; |
|
24 | ||
25 | public function setUp() { |
|
26 | parent::setUp(); |
|
27 | Settings::reset_data(); |
|
28 | ||
29 | $this->full_sync = Modules::get_module( 'full-sync' ); |
|
30 | ||
31 | $this->server_replica_storage->reset(); |
|
32 | $this->sender->reset_data(); |
|
33 | $this->sender->set_enqueue_wait_time( 0 ); |
|
34 | ||
35 | } |
|
36 | ||
37 | function test_sync_start_action_with_ranges() { |
|
38 | $post = $this->factory->post->create(); |
@@ 23-31 (lines=9) @@ | ||
20 | private $test_posts_count = 20; |
|
21 | private $test_comments_count = 11; |
|
22 | ||
23 | public function setUp() { |
|
24 | parent::setUp(); |
|
25 | Settings::reset_data(); |
|
26 | Settings::update_settings( array( 'full_sync_send_immediately' => 0 ) ); |
|
27 | ||
28 | $this->full_sync = Modules::get_module( 'full-sync' ); |
|
29 | $this->server_replica_storage->reset(); |
|
30 | $this->sender->reset_data(); |
|
31 | } |
|
32 | ||
33 | function test_enqueues_sync_start_action() { |
|
34 | $post = $this->factory->post->create(); |