From f2b6c12ddb738a86573d40d06825b72dbffd1710 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 19 Aug 2019 16:34:57 +0000 Subject: [PATCH] Coding Standards: Fix WPCS violations in [45851]. See #25347. git-svn-id: https://develop.svn.wordpress.org/trunk@45852 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/wpInsertPost.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/tests/post/wpInsertPost.php b/tests/phpunit/tests/post/wpInsertPost.php index b52ba74c03..649dd55e28 100644 --- a/tests/phpunit/tests/post/wpInsertPost.php +++ b/tests/phpunit/tests/post/wpInsertPost.php @@ -309,17 +309,21 @@ class Tests_WPInsertPost extends WP_UnitTestCase { $now = new DateTimeImmutable( 'now', new DateTimeZone( 'UTC' ) ); - $post_id = $this->factory()->post->create( [ - 'post_date_gmt' => $now->modify( '-1 year' )->format( 'Y-m-d H:i:s' ), - 'post_status' => 'future', - ] ); + $post_id = $this->factory()->post->create( + array( + 'post_date_gmt' => $now->modify( '-1 year' )->format( 'Y-m-d H:i:s' ), + 'post_status' => 'future', + ) + ); $this->assertEquals( 'publish', get_post_status( $post_id ) ); - $post_id = $this->factory()->post->create( [ - 'post_date_gmt' => $now->modify( '+50 years' )->format( 'Y-m-d H:i:s' ), - 'post_status' => 'future', - ] ); + $post_id = $this->factory()->post->create( + array( + 'post_date_gmt' => $now->modify( '+50 years' )->format( 'Y-m-d H:i:s' ), + 'post_status' => 'future', + ) + ); $this->assertEquals( 'future', get_post_status( $post_id ) ); }