WordPress.org

Make WordPress Core

Changeset 780 in tests


Ignore:
Timestamp:
06/30/12 18:49:19 (22 months ago)
Author:
nacin
Message:

Port test_admin_includes_theme.php. fixes #56.

File:
1 edited

Legend:

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

    r742 r780  
    11<?php 
    22// Test functions that fetch stuff from the theme directory 
    3 class TestPageTemplates extends _WPEmptyBlog { 
     3class TestPageTemplates extends WP_UnitTestCase { 
    44    function setUp() { 
    55        parent::setUp(); 
    6         $this->theme_root = realpath(DIR_TESTROOT.'/'.DIR_TESTDATA.'/themedir1'); 
     6        $this->theme_root = DIR_TESTDATA . '/themedir1'; 
    77 
    88        $this->orig_theme_dir = $GLOBALS['wp_theme_directories']; 
     
    1515        // clear caches 
    1616        wp_clean_themes_cache(); 
    17         unset( $GLOBALS['wp_themes'] ); 
    1817    } 
    1918 
Note: See TracChangeset for help on using the changeset viewer.