Make WordPress Core


Ignore:
Timestamp:
10/31/2017 06:01:04 AM (9 years ago)
Author:
pento
Message:

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.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/tests/phpunit/tests/ajax/Compression.php

    r40544 r42051  
    2626
    2727                // Make the request
    28                 $this->setExpectedException( 'WPAjaxDieStopException', '0' );
     28                $this->setExpectedException( 'WPAjaxDieStopException', '-1' );
    2929                $this->_handleAjax( 'wp-compression-test' );
    3030        }
Note: See TracChangeset for help on using the changeset viewer.