Changeset 48996 for trunk/tests/phpunit/tests/includes/helpers.php
- Timestamp:
- 09/18/2020 01:22:22 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/includes/helpers.php
r48939 r48996 269 269 /** 270 270 * @ticket 36166 271 * @expectedException WPDieException272 271 */ 273 272 public function test_die_handler_should_handle_wp_error() { 273 $this->expectException( 'WPDieException' ); 274 274 275 wp_die( new WP_Error( 'test', 'test' ) ); 275 276 } … … 277 278 /** 278 279 * @ticket 46813 279 * @expectedException WPDieException280 280 */ 281 281 public function test_die_handler_should_not_cause_doing_it_wrong_notice_without_wp_query_set() { 282 $this->expectException( 'WPDieException' ); 282 283 unset( $GLOBALS['wp_query'] ); 283 284
Note: See TracChangeset
for help on using the changeset viewer.