Make WordPress Core

Changeset 869 in tests for trunk/wp-testlib/testcase.php


Ignore:
Timestamp:
07/02/2012 11:19:34 PM (14 years ago)
Author:
nacin
Message:

Force constants to be re-defined after files are included.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testlib/testcase.php

    r862 r869  
    146146    }
    147147
     148    /**
     149     *
     150    function prepareTemplate( $template ) {
     151        parent::prepareTemplate();
     152        $template->setVar( array( 'constants' => '' ) );
     153        $template->setVar( array( 'wp_constants' => PHPUnit_Util_GlobalState::getConstantsAsString() ) );
     154    }
    148155}
Note: See TracChangeset for help on using the changeset viewer.