diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Memcache/RedisTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/Memcache/RedisTest.php b/tests/lib/Memcache/RedisTest.php index 276dbf3a550..9e40698ec06 100644 --- a/tests/lib/Memcache/RedisTest.php +++ b/tests/lib/Memcache/RedisTest.php @@ -9,6 +9,8 @@ namespace Test\Memcache; +use const OC\Memcache\LUA_SCRIPTS; + /** * @group Memcache * @group Redis @@ -56,4 +58,10 @@ class RedisTest extends Cache { parent::setUp(); $this->instance = new \OC\Memcache\Redis($this->getUniqueID()); } + + public function testScriptHashes() { + foreach (LUA_SCRIPTS as $script) { + $this->assertEquals(sha1($script[0]), $script[1]); + } + } } |