mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 04:48:25 +01:00
Build/Test Tools: Pass correct $message
argument to WP_UnitTestCase::setExpectedException()
in Tests_Ajax_CompressionTest::test_logged_out()
and Tests_Ajax_TagSearch::test_no_results()
.
PHPUnit 6.4.1 and earlier versions ignored the `'0'` value, causing the issue to go unnoticed. Merge of [41870] to the 4.8 branch. Props SergeyBiryukov. See #42232. git-svn-id: https://develop.svn.wordpress.org/branches/4.8@42051 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fa4df67fa7
commit
f6597fd181
@ -25,7 +25,7 @@ class Tests_Ajax_CompressionTest extends WP_Ajax_UnitTestCase {
|
||||
$_GET['test'] = 1;
|
||||
|
||||
// Make the request
|
||||
$this->setExpectedException( 'WPAjaxDieStopException', '0' );
|
||||
$this->setExpectedException( 'WPAjaxDieStopException', '-1' );
|
||||
$this->_handleAjax( 'wp-compression-test' );
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ class Tests_Ajax_TagSearch extends WP_Ajax_UnitTestCase {
|
||||
|
||||
// Make the request
|
||||
// No output, so we get a stop exception
|
||||
$this->setExpectedException( 'WPAjaxDieStopException', '0' );
|
||||
$this->setExpectedException( 'WPAjaxDieStopException', '' );
|
||||
$this->_handleAjax( 'ajax-tag-search' );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user