Changeset 48997 for trunk/tests/phpunit/tests/ajax/TagSearch.php
- Timestamp:
- 09/18/2020 01:48:27 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/TagSearch.php
r48937 r48997 75 75 // Make the request. 76 76 // No output, so we get a stop exception. 77 $this->setExpectedException( 'WPAjaxDieStopException', '' ); 77 $this->expectException( 'WPAjaxDieStopException' ); 78 $this->expectExceptionMessage( '' ); 78 79 $this->_handleAjax( 'ajax-tag-search' ); 79 80 } … … 115 116 116 117 // Make the request. 117 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 118 $this->expectException( 'WPAjaxDieStopException' ); 119 $this->expectExceptionMessage( '-1' ); 118 120 $this->_handleAjax( 'ajax-tag-search' ); 119 121 } … … 132 134 133 135 // Make the request. 134 $this->setExpectedException( 'WPAjaxDieStopException', '0' ); 136 $this->expectException( 'WPAjaxDieStopException' ); 137 $this->expectExceptionMessage( '0' ); 135 138 $this->_handleAjax( 'ajax-tag-search' ); 136 139 } … … 149 152 150 153 // Make the request. 151 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 154 $this->expectException( 'WPAjaxDieStopException' ); 155 $this->expectExceptionMessage( '-1' ); 152 156 $this->_handleAjax( 'ajax-tag-search' ); 153 157 }
Note: See TracChangeset
for help on using the changeset viewer.