diff options
author | David King <imkingdavid@gmail.com> | 2012-09-01 10:35:46 -0400 |
---|---|---|
committer | David King <imkingdavid@gmail.com> | 2012-09-01 10:37:44 -0400 |
commit | 7dfe26dd781e7bd0438041058e2a1d95176e7836 (patch) | |
tree | 2756243b6ff1554eb79118767d6d7c8a21b1bc4e /phpBB/includes/functions_install.php | |
parent | 7cffebbd4997f8a41a871f8ea6fe12dc0abc08c8 (diff) | |
download | forums-7dfe26dd781e7bd0438041058e2a1d95176e7836.tar forums-7dfe26dd781e7bd0438041058e2a1d95176e7836.tar.gz forums-7dfe26dd781e7bd0438041058e2a1d95176e7836.tar.bz2 forums-7dfe26dd781e7bd0438041058e2a1d95176e7836.tar.xz forums-7dfe26dd781e7bd0438041058e2a1d95176e7836.zip |
[task/functional] Allow tests to bypass certain restrictions with DEBUG_TEST
PHPBB3-10758
Diffstat (limited to 'phpBB/includes/functions_install.php')
-rw-r--r-- | phpBB/includes/functions_install.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions_install.php b/phpBB/includes/functions_install.php index 89dfb7cd2f..2e10db6b24 100644 --- a/phpBB/includes/functions_install.php +++ b/phpBB/includes/functions_install.php @@ -551,10 +551,12 @@ function adjust_language_keys_callback($matches) * @param string $dbms The name of the DBAL class to use * @param array $load_extensions Array of additional extensions that should be loaded * @param bool $debug If the debug constants should be enabled by default or not +* @param bool $debug_test If the DEBUG_TEST constant should be added +* NOTE: Only for use within the testing framework * * @return string The output to write to the file */ -function phpbb_create_config_file_data($data, $dbms, $load_extensions, $debug = false) +function phpbb_create_config_file_data($data, $dbms, $load_extensions, $debug = false, $debug_test = false) { $load_extensions = implode(',', $load_extensions); @@ -584,6 +586,7 @@ function phpbb_create_config_file_data($data, $dbms, $load_extensions, $debug = { $config_data .= "@define('DEBUG', true);\n"; $config_data .= "@define('DEBUG_EXTRA', true);\n"; + $config_data .= "@define('DEBUG_TEST', true);\n"; } else { |