diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-20 10:51:04 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-20 10:51:04 +0100 |
commit | 7eb8404040c35bf120019973d67f89b3a9fb33df (patch) | |
tree | 3a5f90ae683bb3006dda445dc7d51a0b4a914ab0 /tests/lib/memcache | |
parent | 2fe6513557e22653551cfe59c006282c3793b1b9 (diff) | |
download | nextcloud-server-7eb8404040c35bf120019973d67f89b3a9fb33df.tar.gz nextcloud-server-7eb8404040c35bf120019973d67f89b3a9fb33df.zip |
Add a test case for memcaches to store an array
Diffstat (limited to 'tests/lib/memcache')
-rw-r--r-- | tests/lib/memcache/cache.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/memcache/cache.php b/tests/lib/memcache/cache.php index 8a4a708e4b7..e5ceae52fb0 100644 --- a/tests/lib/memcache/cache.php +++ b/tests/lib/memcache/cache.php @@ -22,6 +22,12 @@ abstract class Cache extends \Test_Cache { $this->assertEquals('bar', $this->instance->get('foo')); } + public function testGetArrayAfterSet() { + $this->assertNull($this->instance->get('foo')); + $this->instance->set('foo', ['bar']); + $this->assertEquals(['bar'], $this->instance->get('foo')); + } + public function testDoesNotExistAfterRemove() { $this->instance->set('foo', 'bar'); $this->instance->remove('foo'); |