Make WordPress Core

Changeset 49365


Ignore:
Timestamp:
10/29/2020 12:02:00 AM (6 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-search-controller.php

    r49132 r49365  
    5555         */
    5656        public static function wpSetUpBeforeClass( $factory ) {
    57                 add_theme_support( 'post-formats' );
     57                add_theme_support( 'post-formats', array( 'aside' ) );
    5858
    5959                self::$my_title_post_ids = $factory->post->create_many(
Note: See TracChangeset for help on using the changeset viewer.