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/post/formats.php

    r49344 r49354  
    77    function setUp() {
    88        parent::setUp();
    9     }
    10 
    11     /**
    12      * @ticket 51390
    13      */
    14     function test_post_format_doing_it_wrong() {
    15         $this->setExpectedIncorrectUsage( "add_theme_support( 'post-formats' )" );
    16 
    17         // The second parameter should be an array.
    18         $this->assertFalse( add_theme_support( 'post-formats' ) );
    199    }
    2010
Note: See TracChangeset for help on using the changeset viewer.