diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-20 09:51:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 09:51:18 +0100 |
commit | cc6c30e7695eb04df3660a386350292a568c4d26 (patch) | |
tree | 39529c96563e4618fcf7816ff92cfb30354412b2 /tests | |
parent | 8e65f08617d77d29280e9a5ab1d6d8a2fed75f36 (diff) | |
parent | aa6f7947bacbf8eeb7eae4f5db7c0a52d7b4bbfa (diff) | |
download | nextcloud-server-cc6c30e7695eb04df3660a386350292a568c4d26.tar.gz nextcloud-server-cc6c30e7695eb04df3660a386350292a568c4d26.zip |
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.php | 1 |
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')); } |