| @@ 146-155 (lines=10) @@ | ||
| 143 | $this->assertFalse( $posts_event ); |
|
| 144 | } |
|
| 145 | ||
| 146 | function test_full_sync_sends_wp_version() { |
|
| 147 | $this->server_replica_storage->reset(); |
|
| 148 | $this->sender->reset_data(); |
|
| 149 | ||
| 150 | $this->full_sync->start(); |
|
| 151 | $this->sender->do_full_sync(); |
|
| 152 | ||
| 153 | global $wp_version; |
|
| 154 | $this->assertEquals( $wp_version, $this->server_replica_storage->get_callable( 'wp_version' ) ); |
|
| 155 | } |
|
| 156 | ||
| 157 | function test_sync_post_filtered_content_was_filtered_when_syncing_all() { |
|
| 158 | $post_id = $this->factory->post->create(); |
|
| @@ 172-181 (lines=10) @@ | ||
| 169 | $this->assertTrue( $posts_event === false ); |
|
| 170 | } |
|
| 171 | ||
| 172 | function test_full_sync_sends_wp_version() { |
|
| 173 | $this->server_replica_storage->reset(); |
|
| 174 | $this->sender->reset_data(); |
|
| 175 | ||
| 176 | $this->full_sync->start(); |
|
| 177 | $this->sender->do_full_sync(); |
|
| 178 | ||
| 179 | global $wp_version; |
|
| 180 | $this->assertEquals( $wp_version, $this->server_replica_storage->get_callable( 'wp_version' ) ); |
|
| 181 | } |
|
| 182 | ||
| 183 | function test_sync_post_filtered_content_was_filtered_when_syncing_all() { |
|
| 184 | $post_id = $this->factory->post->create(); |
|