@@ -45,7 +45,7 @@ public function tearDown() {
45
45
public function test_insert_term_is_synced () {
46
46
$ terms = $ this ->get_terms ();
47
47
$ server_terms = $ this ->server_replica_storage ->get_terms ( $ this ->taxonomy );
48
- $ this ->assertEqualsObject ( $ terms , $ server_terms );
48
+ $ this ->assertEqualsObject ( $ terms , $ server_terms, ' Synced terms do not match local terms. ' );
49
49
50
50
$ event_data = $ this ->server_event_storage ->get_most_recent_event ( 'jetpack_sync_add_term ' );
51
51
$ this ->assertTrue ( (bool ) $ event_data );
@@ -61,7 +61,7 @@ public function test_update_term_is_synced() {
61
61
62
62
$ terms = $ this ->get_terms ();
63
63
$ server_terms = $ this ->server_replica_storage ->get_terms ( $ this ->taxonomy );
64
- $ this ->assertEqualsObject ( $ terms , $ server_terms );
64
+ $ this ->assertEqualsObject ( $ terms , $ server_terms, ' Synced terms do not match local terms. ' );
65
65
}
66
66
67
67
public function test_delete_term_is_synced () {
@@ -80,7 +80,7 @@ public function test_added_terms_to_post_is_synced() {
80
80
81
81
$ object_terms = get_the_terms ( $ this ->post_id , $ this ->taxonomy );
82
82
$ server_object_terms = $ this ->server_replica_storage ->get_the_terms ( $ this ->post_id , $ this ->taxonomy );
83
- $ this ->assertEqualsObject ( $ object_terms , $ server_object_terms );
83
+ $ this ->assertEqualsObject ( $ object_terms , $ server_object_terms, ' Synced terms do not match local terms. ' );
84
84
}
85
85
86
86
public function test_added_terms_to_post_is_synced_appended () {
@@ -94,7 +94,7 @@ public function test_added_terms_to_post_is_synced_appended() {
94
94
$ object_terms = get_the_terms ( $ this ->post_id , $ this ->taxonomy );
95
95
$ server_object_terms = $ this ->server_replica_storage ->get_the_terms ( $ this ->post_id , $ this ->taxonomy );
96
96
$ server_object_terms = array_reverse ( $ server_object_terms );
97
- $ this ->assertEqualsObject ( $ object_terms , $ server_object_terms );
97
+ $ this ->assertEqualsObject ( $ object_terms , $ server_object_terms, ' Synced terms do not match local terms. ' );
98
98
}
99
99
100
100
public function test_deleted_terms_to_post_is_synced () {
@@ -112,7 +112,7 @@ public function test_deleted_terms_to_post_is_synced() {
112
112
$ server_object_terms = $ this ->server_replica_storage ->get_the_terms ( $ this ->post_id , $ this ->taxonomy );
113
113
$ server_object_terms = array_reverse ( $ server_object_terms );
114
114
115
- $ this ->assertEqualsObject ( $ object_terms , $ server_object_terms );
115
+ $ this ->assertEqualsObject ( $ object_terms , $ server_object_terms, ' Synced terms do not match local terms. ' );
116
116
}
117
117
118
118
public function test_delete_object_term_relationships () {
0 commit comments