summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/tests/VersioningTest.php
diff options
context:
space:
mode:
authorLiam JACK <liamjack@users.noreply.github.com>2020-04-12 15:35:17 +0200
committerLiam JACK <liamjack@users.noreply.github.com>2020-04-12 15:35:17 +0200
commitb6c76f43a17822bc0d7eee0270e0c00bd6325865 (patch)
tree62a2e2cf7b6876d32cec37553f814a882b407b00 /apps/files_versions/tests/VersioningTest.php
parent89242142998475fa94f27f99b02c4429b0b9bffd (diff)
downloadnextcloud-server-b6c76f43a17822bc0d7eee0270e0c00bd6325865.tar.gz
nextcloud-server-b6c76f43a17822bc0d7eee0270e0c00bd6325865.zip
Fix #19066 - Array offset error due to empty file versions array
Signed-off-by: Liam JACK <liamjack@users.noreply.github.com>
Diffstat (limited to 'apps/files_versions/tests/VersioningTest.php')
-rw-r--r--apps/files_versions/tests/VersioningTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php
index 26429574364..b6d317ea25e 100644
--- a/apps/files_versions/tests/VersioningTest.php
+++ b/apps/files_versions/tests/VersioningTest.php
@@ -274,6 +274,11 @@ class VersioningTest extends \Test\TestCase {
],
9 // size of all deleted files (every file has the size 1)
],
+ // fourth set of versions: empty (see issue #19066)
+ [
+ [],
+ 0
+ ]
];
}