Changeset 48997 for trunk/tests/phpunit/tests/ajax/GetComments.php
- Timestamp:
- 09/18/2020 01:48:27 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/GetComments.php
r48937 r48997 91 91 92 92 // Make the request. 93 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 93 $this->expectException( 'WPAjaxDieStopException' ); 94 $this->expectExceptionMessage( '-1' ); 94 95 $this->_handleAjax( 'get-comments' ); 95 96 } … … 111 112 112 113 // Make the request. 113 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 114 $this->expectException( 'WPAjaxDieStopException' ); 115 $this->expectExceptionMessage( '-1' ); 114 116 $this->_handleAjax( 'get-comments' ); 115 117 } … … 131 133 132 134 // Make the request. 133 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 135 $this->expectException( 'WPAjaxDieStopException' ); 136 $this->expectExceptionMessage( '-1' ); 134 137 $this->_handleAjax( 'get-comments' ); 135 138 } … … 149 152 150 153 // Make the request. 151 $this->setExpectedException( 'WPAjaxDieStopException', '1' ); 154 $this->expectException( 'WPAjaxDieStopException' ); 155 $this->expectExceptionMessage( '1' ); 152 156 $this->_handleAjax( 'get-comments' ); 153 157 }
Note: See TracChangeset
for help on using the changeset viewer.