mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Themes: Move the test for post-formats theme support to a more appropriate place.
Follow-up to [49344]. See #51390. git-svn-id: https://develop.svn.wordpress.org/trunk@49354 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -132,6 +132,16 @@ class Tests_Theme_Support extends WP_UnitTestCase {
|
||||
$this->assertFalse( current_theme_supports( 'html5' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 51390
|
||||
*
|
||||
* @expectedIncorrectUsage add_theme_support( 'post-formats' )
|
||||
*/
|
||||
function test_supports_post_formats_doing_it_wrong() {
|
||||
// The second parameter should be an array.
|
||||
$this->assertFalse( add_theme_support( 'post-formats' ) );
|
||||
}
|
||||
|
||||
function supports_foobar( $yesno, $args, $feature ) {
|
||||
if ( $args[0] === $feature[0] ) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user