Changeset 25375
- Timestamp:
- 09/12/2013 04:08:03 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/jquery.php
r25072 r25375 51 51 'jquery-ui-tooltip', 'jquery-ui-widget', 'backbone', 'underscore', 52 52 ); 53 54 add_action( 'doing_it_wrong_run', array( $this, 'doing_it_wrong_run' ) ); 55 53 56 foreach ( $libraries as $library ) { 54 57 // Try to deregister the script, which should fail. … … 56 59 $this->assertTrue( wp_script_is( $library, 'registered' ) ); 57 60 } 61 62 remove_action( 'doing_it_wrong_run', array( $this, 'doing_it_wrong_run' ) ); 63 58 64 set_current_screen( 'front' ); 65 } 66 67 function doing_it_wrong_run() { 68 add_filter( 'doing_it_wrong_trigger_error', array( $this, 'doing_it_wrong_trigger_error' ) ); 69 } 70 71 function doing_it_wrong_trigger_error() { 72 remove_filter( 'doing_it_wrong_trigger_error', array( $this, 'doing_it_wrong_trigger_error' ) ); 73 return false; 59 74 } 60 75
Note: See TracChangeset
for help on using the changeset viewer.