Changeset 25017
- Timestamp:
- 08/08/2013 02:55:44 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/includes/testcase.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/includes/testcase.php
r25002 r25017 130 130 $this->flush_cache(); 131 131 unset($GLOBALS['wp_query'], $GLOBALS['wp_the_query']); 132 $GLOBALS['wp_the_query'] = &new WP_Query();133 $GLOBALS['wp_query'] = &$GLOBALS['wp_the_query'];134 $GLOBALS['wp'] = &new WP();132 $GLOBALS['wp_the_query'] = new WP_Query(); 133 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 134 $GLOBALS['wp'] = new WP(); 135 135 136 136 // clean out globals to stop them polluting wp and wp_query … … 202 202 * Define constants after including files. 203 203 */ 204 function prepareTemplate( $template ) {204 function prepareTemplate( Text_Template $template ) { 205 205 $template->setVar( array( 'constants' => '' ) ); 206 206 $template->setVar( array( 'wp_constants' => PHPUnit_Util_GlobalState::getConstantsAsString() ) );
Note: See TracChangeset
for help on using the changeset viewer.