mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-42071 caching Skip memcache(d) tests if no servers defined
This commit is contained in:
parent
7abaa5f46c
commit
cd230b31b6
@ -141,6 +141,10 @@ class cachestore_memcache_test extends cachestore_tests {
|
||||
public function test_clustered() {
|
||||
$this->resetAfterTest(true);
|
||||
|
||||
if (!defined('TEST_CACHESTORE_MEMCACHE_TESTSERVERS')) {
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
||||
$testservers = explode("\n", trim(TEST_CACHESTORE_MEMCACHE_TESTSERVERS));
|
||||
|
||||
if (count($testservers) < 2) {
|
||||
|
@ -141,6 +141,10 @@ class cachestore_memcached_test extends cachestore_tests {
|
||||
public function test_clustered() {
|
||||
$this->resetAfterTest(true);
|
||||
|
||||
if (!defined('TEST_CACHESTORE_MEMCACHED_TESTSERVERS')) {
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
||||
$testservers = explode("\n", trim(TEST_CACHESTORE_MEMCACHED_TESTSERVERS));
|
||||
|
||||
if (count($testservers) < 2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user