Make WordPress Core


Ignore:
Timestamp:
08/31/2012 08:41:52 PM (12 years ago)
Author:
ryan
Message:

set_current_screen( 'front' ) in Tests_Admin_includesScreen::tearDown() to restore the assumption of most unit tests that the context is non-admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/admin/includesScreen.php

    r999 r1002  
    3333    );
    3434
     35    function setUp() {
     36        set_current_screen( 'front' );
     37    }
     38
    3539    function tearDown() {
    3640        parent::tearDown();
    3741        unset( $GLOBALS['wp_taxonomies']['old-or-new'] );
     42        set_current_screen( 'front' );
    3843    }
    3944
Note: See TracChangeset for help on using the changeset viewer.