Make WordPress Core


Ignore:
Timestamp:
10/28/2020 03:12:40 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Themes: Move the test for post-formats theme support to a more appropriate place.

Follow-up to [49344].

See #51390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme/support.php

    r48937 r49354  
    133133    }
    134134
     135    /**
     136     * @ticket 51390
     137     *
     138     * @expectedIncorrectUsage add_theme_support( 'post-formats' )
     139     */
     140    function test_supports_post_formats_doing_it_wrong() {
     141        // The second parameter should be an array.
     142        $this->assertFalse( add_theme_support( 'post-formats' ) );
     143    }
     144
    135145    function supports_foobar( $yesno, $args, $feature ) {
    136146        if ( $args[0] === $feature[0] ) {
Note: See TracChangeset for help on using the changeset viewer.