diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-11-25 21:27:43 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-11-25 21:27:43 +0100 |
commit | c7d47e34e82128399e1b20b9f80a85f46c4cfd75 (patch) | |
tree | b37156468a2218fc2c832b8ca4739d0f3a66f84c /tests/test_framework/phpbb_test_case_helpers.php | |
parent | fd7524858c9c178603cc3bb7440bcbad58c9096a (diff) | |
download | forums-c7d47e34e82128399e1b20b9f80a85f46c4cfd75.tar forums-c7d47e34e82128399e1b20b9f80a85f46c4cfd75.tar.gz forums-c7d47e34e82128399e1b20b9f80a85f46c4cfd75.tar.bz2 forums-c7d47e34e82128399e1b20b9f80a85f46c4cfd75.tar.xz forums-c7d47e34e82128399e1b20b9f80a85f46c4cfd75.zip |
[ticket/16223] Ensure memcached tests are only run when available
PHPBB3-16223
Diffstat (limited to 'tests/test_framework/phpbb_test_case_helpers.php')
-rw-r--r-- | tests/test_framework/phpbb_test_case_helpers.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_test_case_helpers.php b/tests/test_framework/phpbb_test_case_helpers.php index 807a64d810..9a2ea275d0 100644 --- a/tests/test_framework/phpbb_test_case_helpers.php +++ b/tests/test_framework/phpbb_test_case_helpers.php @@ -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; } |