Changeset 25785 for trunk/tests/phpunit/tests/theme/support.php
- Timestamp:
- 10/15/2013 02:30:02 PM (13 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
r25387 r25785 5 5 */ 6 6 class Tests_Theme_Support extends WP_UnitTestCase { 7 8 function setUp() {9 parent::setUp();10 add_action( 'doing_it_wrong_run', array( $this, 'doing_it_wrong_run' ) );11 }12 13 function tearDown() {14 parent::tearDown();15 remove_action( 'doing_it_wrong_run', array( $this, 'doing_it_wrong_run' ) );16 }17 18 function doing_it_wrong_run( $function ) {19 if ( in_array( $function, array( "add_theme_support( 'html5' )" ) ) )20 add_filter( 'doing_it_wrong_trigger_error', array( $this, 'doing_it_wrong_trigger_error' ) );21 }22 23 function doing_it_wrong_trigger_error() {24 remove_filter( 'doing_it_wrong_trigger_error', array( $this, 'doing_it_wrong_trigger_error' ) );25 return false;26 }27 7 28 8 function test_the_basics() { … … 116 96 /** 117 97 * @ticket 24932 98 * 99 * @expectedIncorrectUsage add_theme_support( 'html5' ) 118 100 */ 119 101 function test_supports_html5_subset() { … … 145 127 /** 146 128 * @ticket 24932 129 * 130 * @expectedIncorrectUsage add_theme_support( 'html5' ) 147 131 */ 148 132 function test_supports_html5_invalid() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)