Changeset 49354 for trunk/tests/phpunit/tests/theme/support.php
- Timestamp:
- 10/28/2020 03:12:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/support.php
r48937 r49354 133 133 } 134 134 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 135 145 function supports_foobar( $yesno, $args, $feature ) { 136 146 if ( $args[0] === $feature[0] ) {
Note: See TracChangeset
for help on using the changeset viewer.