Make WordPress Core

Changeset 42051 for branches/4.8


Ignore:
Timestamp:
10/31/2017 06:01:04 AM (8 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:
3 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    }
  • branches/4.8/tests/phpunit/tests/ajax/TagSearch.php

    r38398 r42051  
    6969        // Make the request
    7070        // No output, so we get a stop exception
    71         $this->setExpectedException( 'WPAjaxDieStopException', '0' );
     71        $this->setExpectedException( 'WPAjaxDieStopException', '' );
    7272        $this->_handleAjax( 'ajax-tag-search' );
    7373    }
Note: See TracChangeset for help on using the changeset viewer.