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' );