Make WordPress Core

Changeset 875 in tests for trunk/bootstrap.php


Ignore:
Timestamp:
07/03/2012 05:24:03 PM (14 years ago)
Author:
nacin
Message:

Rename the unit tests wp-config.php to wp-tests-config.php. Also:

  • Rename wp-testdata to data
  • Rename wp-testlib to includes
  • Rename wp-testcase to tests
  • Begin to remove files from the old test suite we no longer need to port code from

fixes #98. see #42.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootstrap.php

    r872 r875  
    88require_once 'PHPUnit/Autoload.php';
    99
    10 $config_file_path = dirname( __FILE__ ) . '/wp-config.php';
     10$config_file_path = dirname( __FILE__ ) . '/wp-tests-config.php';
    1111
    1212/*
    … …  
    2323require_once $config_file_path;
    2424
    25 define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/wp-testdata' );
     25define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/data' );
    2626
    2727if ( ! defined( 'WP_TESTS_FORCE_KNOWN_BUGS' ) )
    … …  
    4747}
    4848
    49 require dirname( __FILE__ ) . '/wp-testlib/functions.php';
     49require dirname( __FILE__ ) . '/includes/functions.php';
    5050
    5151// Preset WordPress options defined in bootstrap file.
    … …  
    6868_delete_all_posts();
    6969
    70 require dirname( __FILE__ ) . '/wp-testlib/testcase.php';
    71 require dirname( __FILE__ ) . '/wp-testlib/testcase-xmlrpc.php';
    72 require dirname( __FILE__ ) . '/wp-testlib/testcase-ajax.php';
    73 require dirname( __FILE__ ) . '/wp-testlib/exceptions.php';
    74 require dirname( __FILE__ ) . '/wp-testlib/utils.php';
     70require dirname( __FILE__ ) . '/includes/testcase.php';
     71require dirname( __FILE__ ) . '/includes/testcase-xmlrpc.php';
     72require dirname( __FILE__ ) . '/includes/testcase-ajax.php';
     73require dirname( __FILE__ ) . '/includes/exceptions.php';
     74require dirname( __FILE__ ) . '/includes/utils.php';
Note: See TracChangeset for help on using the changeset viewer.