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
This commit is contained in:
parent
c812f63015
commit
75bb139087
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user