From aa6f7947bacbf8eeb7eae4f5db7c0a52d7b4bbfa Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 19 Nov 2018 17:37:59 +0100 Subject: [PATCH] add test for non existing file by id Signed-off-by: Robin Appelman --- tests/lib/Files/Cache/CacheTest.php | 1 + 1 file changed, 1 insertion(+) 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')); } -- 2.39.5