1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16223] Ensure memcached tests are only run when available

PHPBB3-16223
This commit is contained in:
Marc Alexander
2019-11-25 21:27:43 +01:00
parent fd7524858c
commit c7d47e34e8
4 changed files with 77 additions and 4 deletions

View File

@@ -173,6 +173,16 @@ class phpbb_test_case_helpers
{
$config['fulltext_sphinx_id'] = $fulltext_sphinx_id;
}
if (isset($phpbb_memcached_host))
{
$config['memcached_host'] = $phpbb_memcached_host;
}
if (isset($phpbb_memcached_port))
{
$config['memcached_port'] = $phpbb_memcached_port;
}
}
if (isset($_SERVER['PHPBB_TEST_DBMS']))
@@ -205,6 +215,16 @@ class phpbb_test_case_helpers
$config['redis_port'] = $_SERVER['PHPBB_TEST_REDIS_PORT'];
}
if (isset($_SERVER['PHPBB_TEST_MEMCACHED_HOST']))
{
$config['memcached_host'] = $_SERVER['PHPBB_TEST_MEMCACHED_HOST'];
}
if (isset($_SERVER['PHPBB_TEST_MEMCACHED_PORT']))
{
$config['memcached_port'] = $_SERVER['PHPBB_TEST_MEMCACHED_PORT'];
}
return $config;
}