Make WordPress Core

Ticket #39734: Added_optional_constant_to_define_wp_tests_config_php_path.patch

File Added_optional_constant_to_define_wp_tests_config_php_path.patch, 742 bytes (added by clarinetlord, 7 years ago)
  • tests/phpunit/includes/bootstrap.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    1212}
    1313$config_file_path .= '/wp-tests-config.php';
    1414
     15/* Check for externally-defined config file path constant instead */
     16if ( !is_readable( $config_file_path ) && defined( 'WP_CONFIG_FILE_PATH' ) ) {
     17    $config_file_path = WP_CONFIG_FILE_PATH;
     18}
     19
    1520/*
    1621 * Globalize some WordPress variables, because PHPUnit loads this file inside a function
    1722 * See: https://github.com/sebastianbergmann/phpunit/issues/325