mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Redis extension has to be checked for the test
This commit is contained in:
@@ -22,7 +22,7 @@ class RedisTest extends \PhraseanetPHPUnitAbstract
|
||||
|
||||
public function testBasics()
|
||||
{
|
||||
if (extension_loaded('memcached'))
|
||||
if (extension_loaded('Redis'))
|
||||
{
|
||||
$redis = new Redis();
|
||||
$ok = @$redis->connect('127.0.0.1', 6379);
|
||||
@@ -43,7 +43,7 @@ class RedisTest extends \PhraseanetPHPUnitAbstract
|
||||
|
||||
// Test contains to test that save() worked
|
||||
$this->assertTrue($cache->contains('test_key'));
|
||||
|
||||
|
||||
$cache->save('test_key1', 'testing this out', 20);
|
||||
|
||||
// Test contains to test that save() worked
|
||||
@@ -59,7 +59,7 @@ class RedisTest extends \PhraseanetPHPUnitAbstract
|
||||
|
||||
$ids = $cache->getIds();
|
||||
$this->assertTrue(in_array('test_key', $ids));
|
||||
|
||||
|
||||
$this->assertEquals($redis, $cache->getRedis());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user