]> source.dussan.org Git - nextcloud-server.git/commitdiff
add test for non existing file by id 12494/head
authorRobin Appelman <robin@icewind.nl>
Mon, 19 Nov 2018 16:37:59 +0000 (17:37 +0100)
committerRobin Appelman <robin@icewind.nl>
Mon, 19 Nov 2018 16:37:59 +0000 (17:37 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
tests/lib/Files/Cache/CacheTest.php

index bc95a9004f8bfcf7facea5c3618ea69a77a545cf..d984964ca9f0ca17d4b5dc7b56ddfcb3d8802a0c 100644 (file)
@@ -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'));
        }