]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add a test case for memcaches to store an array
authorJoas Schilling <nickvergessen@gmx.de>
Tue, 20 Jan 2015 09:51:04 +0000 (10:51 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Tue, 20 Jan 2015 09:51:04 +0000 (10:51 +0100)
tests/lib/memcache/cache.php

index 8a4a708e4b7588fcb91efbd865faa92fdf1059fc..e5ceae52fb0e0b1eed7574730c7ce7cd15cb0848 100644 (file)
@@ -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');