WordPress.org

Make WordPress Core

Changeset 6 in tests


Ignore:
Timestamp:
09/20/07 01:07:28 (7 years ago)
Author:
tellyworth
Message:

add DIR_TESTPLUGINS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r2 r6  
    66define('DIR_TESTCASE', './wp-testcase'); 
    77define('DIR_TESTDATA', './wp-testdata'); 
     8define('DIR_TESTPLUGINS', './wp-plugins'); 
    89define('TEST_MU', (@$opts['v'] == 'mu')); 
    910 
     
    5455assert(true == is_blog_installed()); 
    5556 
     57// include plugins for testing, if any 
     58if (is_dir(DIR_TESTPLUGINS)) { 
     59    $plugins = glob(realpath(DIR_TESTPLUGINS).'/*.php'); 
     60    foreach ($plugins as $plugin) 
     61        include_once($plugin); 
     62} 
     63 
    5664// run the tests and print the results 
    5765$result = wptest_run_tests($classes); 
Note: See TracChangeset for help on using the changeset viewer.