Changeset 52828 for trunk/tests/phpunit/tests/theme/support.php
- Timestamp:
- 03/07/2022 02:42:49 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme/support.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/support.php
r52812 r52828 77 77 /** 78 78 * @ticket 24932 79 * 80 * @expectedIncorrectUsage add_theme_support( 'html5' ) 79 81 */ 80 82 public function test_supports_html5() { … … 82 84 $this->assertFalse( current_theme_supports( 'html5' ) ); 83 85 $this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) ); 86 87 /* 88 * If the second parameter is not specified, it should throw a _doing_it_wrong() notice 89 * and fall back to `array( 'comment-list', 'comment-form', 'search-form' )` for back-compat. 90 */ 84 91 $this->assertNotFalse( add_theme_support( 'html5' ) ); 85 92 $this->assertTrue( current_theme_supports( 'html5' ) ); … … 99 106 $this->assertFalse( current_theme_supports( 'html5' ) ); 100 107 $this->assertFalse( current_theme_supports( 'html5', 'comment-form' ) ); 108 109 // The second parameter should be an array. 101 110 $this->assertFalse( add_theme_support( 'html5', 'comment-form' ) ); 102 111 $this->assertNotFalse( add_theme_support( 'html5', array( 'comment-form' ) ) );
Note: See TracChangeset
for help on using the changeset viewer.