Skip to content

Commit d8f5ce0

Browse files
Tests: Remove test_post_thumbnails_types_true().
The test incorrectly describes the behavior of `current_theme_supports( 'post-thumbnails' )` and only passes by accident. Follow-up to [30148]. Fixes #49801. git-svn-id: https://develop.svn.wordpress.org/trunk@47548 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b5117e1 commit d8f5ce0

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

tests/phpunit/tests/theme/support.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,13 @@ public function test_post_thumbnails_mixed_args() {
6767
);
6868

6969
add_theme_support( 'post-thumbnails' );
70-
$this->assertTrue( current_theme_supports( 'post-thumbnails', 'book' ) );
70+
$this->assertTrue( current_theme_supports( 'post-thumbnails', 'any-type' ) );
7171

7272
// Reset post-thumbnails theme support.
7373
remove_theme_support( 'post-thumbnails' );
7474
$this->assertFalse( current_theme_supports( 'post-thumbnails' ) );
7575
}
7676

77-
public function test_post_thumbnails_types_true() {
78-
// array of arguments, with the key of 'types' holding the post types.
79-
add_theme_support( 'post-thumbnails', array( 'types' => true ) );
80-
$this->assertTrue( current_theme_supports( 'post-thumbnails' ) );
81-
$this->assertTrue( current_theme_supports( 'post-thumbnails', rand_str() ) ); // Any type.
82-
remove_theme_support( 'post-thumbnails' );
83-
$this->assertFalse( current_theme_supports( 'post-thumbnails' ) );
84-
}
85-
8677
/**
8778
* @ticket 24932
8879
*/

0 commit comments

Comments
 (0)