You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertIsInt( $revision_id_1, 'Expected first revision to be created.' );
974
+
$this->assertCount( 1, wp_get_post_revisions( $post_id ), 'First revision should be created.' );
975
+
$this->assertSame( $initial_favorites, get_post_meta( $revision_id_1, $meta_key, true ), 'Expected first revision post meta to have the initial value.' );
$this->assertIsInt( $revision_id_2, 'Expected second revision to be created.' );
989
+
$this->assertCount( 2, wp_get_post_revisions( $post_id ), 'Second revision should be created after array field change.' );
990
+
$this->assertSame( $updated_favorites, get_post_meta( $revision_id_2, $meta_key, true ), 'Expected second revision post meta to have the updated value.' );
0 commit comments