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:
authorRobin Appelman <robin@icewind.nl>2018-11-19 19:37:59 +0300
committerRobin Appelman <robin@icewind.nl>2018-11-19 19:37:59 +0300
commitaa6f7947bacbf8eeb7eae4f5db7c0a52d7b4bbfa (patch)
treea823e9983806c2aa2cda1e352d2df5cf4405cf19 /tests
parent5d5cfefd35f73d9e9efccce7b824d8fc92b8d343 (diff)
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.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'));
}