@@ -109,10 +109,8 @@ public function test_update_invalid_post_id() {
109109
110110 $ post ['ID ' ] = 123456789 ;
111111
112- $ this ->assertSame ( 0 , wp_insert_post ( $ post ) );
113112 $ this ->assertSame ( 0 , wp_update_post ( $ post ) );
114113
115- $ this ->assertInstanceOf ( 'WP_Error ' , wp_insert_post ( $ post , true ) );
116114 $ this ->assertInstanceOf ( 'WP_Error ' , wp_update_post ( $ post , true ) );
117115 }
118116
@@ -194,11 +192,11 @@ public function test_wp_update_post_with_content_filtering() {
194192 *
195193 * @ticket 62468
196194 *
197- * @dataProvider data_post_status_transitions
195+ * @dataProvider data_update_post_preserves_date_for_future_posts
198196 *
199197 * @param string $initial_status Initial post status.
200198 */
201- public function test_update_post_preserves_date ( $ initial_status ) {
199+ public function test_update_post_preserves_date_for_future_posts ( $ initial_status ) {
202200
203201 $ post_id = self ::factory ()->post ->create (
204202 array (
@@ -220,11 +218,11 @@ public function test_update_post_preserves_date( $initial_status ) {
220218 }
221219
222220 /**
223- * Data provider for test_update_post_preserves_date
221+ * Data provider for test_update_post_preserves_date_for_future_posts
224222 *
225223 * @return array[] Test parameters
226224 */
227- public function data_post_status_transitions () {
225+ public function data_update_post_preserves_date_for_future_posts () {
228226 return array (
229227 'pending to future ' => array (
230228 'initial_status ' => 'pending ' ,
0 commit comments