Changeset 48997 for trunk/tests/phpunit/tests/ajax/CustomizeMenus.php
- Timestamp:
- 09/18/2020 01:48:27 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/ajax/CustomizeMenus.php (modified) (2 diffs)
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)