Skip to content

Commit 3d96f94

Browse files
Update tests/phpunit/tests/rest-api/rest-sync-server.php
Co-authored-by: Weston Ruter <westonruter@gmail.com>
1 parent fb17259 commit 3d96f94

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/phpunit/tests/rest-api/rest-sync-server.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,12 @@ private function insert_sync_row( $age_in_seconds, $label = 'test' ) {
10441044
$wpdb->sync_updates,
10451045
array(
10461046
'room' => $this->get_post_room(),
1047-
'update_value' => wp_json_encode( array( 'type' => 'update', 'data' => $label ) ),
1047+
'update_value' => wp_json_encode(
1048+
array(
1049+
'type' => 'update',
1050+
'data' => $label,
1051+
)
1052+
),
10481053
'created_at' => gmdate( 'Y-m-d H:i:s', time() - $age_in_seconds ),
10491054
),
10501055
array( '%s', '%s', '%s' )

0 commit comments

Comments
 (0)