]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Cache/MemcacheCacheDriverTest.php
Merge pull request #6678 from rabuzarus/20190217_-_fix_magicLinks_mentions
[friendica.git] / tests / src / Core / Cache / MemcacheCacheDriverTest.php
index 6a81cf46a17a496c4d702b661a6c1ce0677a41ea..f9df9eaba089b996ab62ed108908801451f9f486 100644 (file)
@@ -3,10 +3,6 @@
 
 namespace Friendica\Test\src\Core\Cache;
 
-/**
- * @runTestsInSeparateProcesses
- * @preserveGlobalState disabled
- */
 use Friendica\Core\Cache\CacheDriverFactory;
 
 /**
@@ -16,6 +12,16 @@ class MemcacheCacheDriverTest extends MemoryCacheTest
 {
        protected function getInstance()
        {
+               $this->configMock
+                       ->shouldReceive('get')
+                       ->with('system', 'memcache_host')
+                       ->andReturn('localhost');
+
+               $this->configMock
+                       ->shouldReceive('get')
+                       ->with('system', 'memcache_port')
+                       ->andReturn(11211);
+
                $this->cache = CacheDriverFactory::create('memcache');
                return $this->cache;