Make WordPress Core

Changeset 25008


Ignore:
Timestamp:
08/07/2013 10:09:35 AM (12 years ago)
Author:
westi
Message:

Tests: Add support for storing your wp-test-config.php file a directory higher if you want to like we do for wp-config.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/includes/bootstrap.php

    r25002 r25008  
    88
    99$config_file_path = dirname( __FILE__ ) . '/../wp-tests-config.php';
     10if ( ! file_exists( $config_file_path ) ) {
     11    // Support having the config file one level up.
     12    $config_file_path = dirname( __FILE__ ) . '/../../wp-tests-config.php';
     13}
    1014
    1115/*
Note: See TracChangeset for help on using the changeset viewer.