|
@@ 184-187 (lines=4) @@
|
| 181 |
|
$histogram = $store->checksum_histogram( 'post_meta', 2 ); |
| 182 |
|
|
| 183 |
|
// temporary hack due to missing post_meta_checksum implementation in the test replicastore |
| 184 |
|
if ( 'Jetpack_Sync_Test_Replicastore' != get_class( $store ) ) { |
| 185 |
|
$this->assertEquals( $store->post_meta_checksum( 1, 2 ), $histogram['1-2'] ); |
| 186 |
|
$this->assertEquals( $store->post_meta_checksum( 5, 10 ), $histogram['5-10'] ); |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
// test comments checksum with ID range |
| 190 |
|
$histogram = $store->checksum_histogram( 'comments', 2 ); |
|
@@ 198-201 (lines=4) @@
|
| 195 |
|
$histogram = $store->checksum_histogram( 'comment_meta', 2 ); |
| 196 |
|
|
| 197 |
|
// temporary hack due to missing comment_meta_checksum implementation in the test replicastore |
| 198 |
|
if ( 'Jetpack_Sync_Test_Replicastore' != get_class( $store ) ) { |
| 199 |
|
$this->assertEquals( $store->comment_meta_checksum( 1, 4 ), $histogram['1-4'] ); |
| 200 |
|
$this->assertEquals( $store->comment_meta_checksum( 7, 10 ), $histogram['7-10'] ); |
| 201 |
|
} |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
/** |