Changeset 47122 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r47018 r47122 500 500 } 501 501 502 // Perform an assertion, but only if there are expected or unexpected deprecated calls or wrongdoings 502 // Perform an assertion, but only if there are expected or unexpected deprecated calls or wrongdoings. 503 503 if ( ! empty( $this->expected_deprecated ) || 504 504 ! empty( $this->expected_doing_it_wrong ) || … … 728 728 */ 729 729 public function go_to( $url ) { 730 // note: the WP and WP_Query classes like to silently fetch parameters 731 // from all over the place (globals, GET, etc), which makes it tricky 732 // to run them more than once without very carefully clearing everything 730 /* 731 * Note: the WP and WP_Query classes like to silently fetch parameters 732 * from all over the place (globals, GET, etc), which makes it tricky 733 * to run them more than once without very carefully clearing everything. 734 */ 733 735 $_GET = array(); 734 736 $_POST = array(); … … 743 745 if ( isset( $parts['query'] ) ) { 744 746 $req .= '?' . $parts['query']; 745 // parse the url query vars into $_GET747 // Parse the URL query vars into $_GET. 746 748 parse_str( $parts['query'], $_GET ); 747 749 } … … 778 780 * This is a custom extension of the PHPUnit requirements handling. 779 781 * 780 * Contains legacy code for skipping tests that are associated with an open Trac ticket. Core tests no longer781 * support this behaviour.782 * Contains legacy code for skipping tests that are associated with an open Trac ticket. 783 * Core tests no longer support this behaviour. 782 784 * 783 785 * @since 3.5.0 … … 806 808 } 807 809 808 // Core tests no longer check against open Trac tickets, but others using WP_UnitTestCase may do so. 810 // Core tests no longer check against open Trac tickets, 811 // but others using WP_UnitTestCase may do so. 809 812 if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { 810 813 return;
Note: See TracChangeset
for help on using the changeset viewer.