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,