From f141418a5f4be1054aada8b0d524ba36bbe00bea Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 21 Dec 2020 00:31:54 +0000 Subject: [PATCH] Query: Correct some coding standards after [49843]. See #44183 git-svn-id: https://develop.svn.wordpress.org/trunk@49846 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/general/template.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/general/template.php b/tests/phpunit/tests/general/template.php index fd7f9499d3..048c1aea86 100644 --- a/tests/phpunit/tests/general/template.php +++ b/tests/phpunit/tests/general/template.php @@ -605,9 +605,11 @@ class Tests_General_Template extends WP_UnitTestCase { ) ); - $this->factory()->post->create( [ - 'post_author' => $user_with_posts->ID, - ] ); + $this->factory()->post->create( + array( + 'post_author' => $user_with_posts->ID, + ) + ); // Simplify the assertion by removing the default archive title prefix: add_filter( 'get_the_archive_title_prefix', '__return_empty_string' );