diff options
author | Robin Appelman <robin@icewind.nl> | 2018-11-19 17:37:59 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-11-19 17:37:59 +0100 |
commit | aa6f7947bacbf8eeb7eae4f5db7c0a52d7b4bbfa (patch) | |
tree | a823e9983806c2aa2cda1e352d2df5cf4405cf19 /tests | |
parent | 5d5cfefd35f73d9e9efccce7b824d8fc92b8d343 (diff) | |
download | nextcloud-server-aa6f7947bacbf8eeb7eae4f5db7c0a52d7b4bbfa.tar.gz nextcloud-server-aa6f7947bacbf8eeb7eae4f5db7c0a52d7b4bbfa.zip |
add test for non existing file by id
Signed-off-by: Robin Appelman <robin@icewind.nl>
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')); } |