Changeset 80 in tests
- Timestamp:
- 11/09/2007 04:07:00 AM (18 years ago)
- File:
-
- 1 edited
-
wp-test.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-test.php
r68 r80 27 27 require_once(DIR_TESTROOT.'/wp-testlib/utils.php'); 28 28 29 // include all files in DIR_TESTCASE, and fetch all the WPTestCase descendents30 $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 35 29 // configure wp 36 30 … … 51 45 define('WP_USER_EMAIL', rand_str().'@example.com'); 52 46 47 53 48 // initialize wp 54 49 define('WP_INSTALLING', 1); … … 57 52 58 53 drop_tables(); 54 59 55 60 56 if (TEST_MU) … … 82 78 } 83 79 80 include_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); 83 foreach ($files as $file) 84 require_once($file); 85 $classes = wptest_get_all_test_cases(); 86 87 do_action('test_start'); 88 84 89 // hide errors during test runs, since they're captured and reported by the test framework 85 90 ini_set('display_errors', '0');
Note: See TracChangeset
for help on using the changeset viewer.