]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Cache/RedisCacheDriverTest.php
Merge pull request #6577 from rabuzarus/20190129_-_jot_atachment_preview
[friendica.git] / tests / src / Core / Cache / RedisCacheDriverTest.php
1 <?php
2
3
4 namespace Friendica\Test\src\Core\Cache;
5
6 use Friendica\Core\Cache\CacheDriverFactory;
7
8 /**
9  * @runTestsInSeparateProcesses
10  * @preserveGlobalState disabled
11  * @requires extension redis
12  */
13 class RedisCacheDriverTest extends MemoryCacheTest
14 {
15         protected function getInstance()
16         {
17                 $this->mockConfigGet('system', 'redis_host', 'localhost', 1);
18                 $this->mockConfigGet('system', 'redis_port', null, 1);
19
20                 $this->cache = CacheDriverFactory::create('redis');
21                 return $this->cache;
22         }
23
24         public function tearDown()
25         {
26                 $this->cache->clear(false);
27                 parent::tearDown();
28         }
29 }