Changeset 48997 for trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
- Timestamp:
- 09/18/2020 01:48:27 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
r48937 r48997 54 54 55 55 if ( 'administrator' !== $role ) { 56 // If we're not an admin, we should get a wp_die(-1). 57 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 56 // If we're not an admin, we should get a wp_die( -1 ). 57 $this->expectException( 'WPAjaxDieStopException' ); 58 $this->expectExceptionMessage( '-1' ); 58 59 } 59 60 … … 443 444 444 445 if ( 'administrator' !== $role ) { 445 // If we're not an admin, we should get a wp_die(-1). 446 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 446 // If we're not an admin, we should get a wp_die( -1 ). 447 $this->expectException( 'WPAjaxDieStopException' ); 448 $this->expectExceptionMessage( '-1' ); 447 449 } 448 450
Note: See TracChangeset
for help on using the changeset viewer.