From 75bb1390879800f2e22de06283a05be43c7cdb71 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 29 Oct 2020 00:02:00 +0000 Subject: [PATCH] Tests: Correct post formats registration in `WP_REST_Search_Controller` tests. When declaring theme support for the `post-formats` feature, an array of supported post formats needs to be specified. Follow-up to [49344], [49354]. Props garrett-eclipse. Fixes #51390. git-svn-id: https://develop.svn.wordpress.org/trunk@49365 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api/rest-search-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/rest-api/rest-search-controller.php b/tests/phpunit/tests/rest-api/rest-search-controller.php index f7ac562ee4..e60d198ee4 100644 --- a/tests/phpunit/tests/rest-api/rest-search-controller.php +++ b/tests/phpunit/tests/rest-api/rest-search-controller.php @@ -54,7 +54,7 @@ class WP_Test_REST_Search_Controller extends WP_Test_REST_Controller_Testcase { * @param WP_UnitTest_Factory $factory Helper that lets us create fake data. */ public static function wpSetUpBeforeClass( $factory ) { - add_theme_support( 'post-formats' ); + add_theme_support( 'post-formats', array( 'aside' ) ); self::$my_title_post_ids = $factory->post->create_many( 4,