Make WordPress Core

Changeset 80 in tests


Ignore:
Timestamp:
11/09/2007 04:07:00 AM (18 years ago)
Author:
tellyworth
Message:

change the order of plugin and test loading so tests can create actions at load time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r68 r80  
    2727require_once(DIR_TESTROOT.'/wp-testlib/utils.php');
    2828
    29 // include all files in DIR_TESTCASE, and fetch all the WPTestCase descendents
    30 $files = wptest_get_all_test_files(DIR_TESTCASE);
    31 foreach ($files as $file)
    32     require_once($file);
    33 $classes = wptest_get_all_test_cases();
    34 
    3529// configure wp
    3630
     
    5145define('WP_USER_EMAIL', rand_str().'@example.com');
    5246
     47
    5348// initialize wp
    5449define('WP_INSTALLING', 1);
     
    5752
    5853drop_tables();
     54
    5955
    6056if (TEST_MU)
     
    8278}
    8379
     80include_once(DIR_TESTDATA . '/sample_blogs.php');
     81// include all files in DIR_TESTCASE, and fetch all the WPTestCase descendents
     82$files = wptest_get_all_test_files(DIR_TESTCASE);
     83foreach ($files as $file)
     84    require_once($file);
     85$classes = wptest_get_all_test_cases();
     86
     87do_action('test_start');
     88
    8489// hide errors during test runs, since they're captured and reported by the test framework
    8590ini_set('display_errors', '0');
Note: See TracChangeset for help on using the changeset viewer.