Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-20 11:51:18 +0300
committerGitHub <noreply@github.com>2018-11-20 11:51:18 +0300
commitcc6c30e7695eb04df3660a386350292a568c4d26 (patch)
tree39529c96563e4618fcf7816ff92cfb30354412b2 /tests
parent8e65f08617d77d29280e9a5ab1d6d8a2fed75f36 (diff)
parentaa6f7947bacbf8eeb7eae4f5db7c0a52d7b4bbfa (diff)
Merge pull request #12494 from nextcloud/cache-notfound-id
return the correct value when trying to get a non existing item from cache by id
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Cache/CacheTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib/Files/Cache/CacheTest.php b/tests/lib/Files/Cache/CacheTest.php
index bc95a9004f8..d984964ca9f 100644
--- a/tests/lib/Files/Cache/CacheTest.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -553,6 +553,7 @@ class CacheTest extends \Test\TestCase {
function testNonExisting() {
$this->assertFalse($this->cache->get('foo.txt'));
+ $this->assertFalse($this->cache->get(-1));
$this->assertEquals(array(), $this->cache->getFolderContents('foo'));
}