summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index 2e497405a4d..db86e0037ef 100644
--- a/apps/files/tests/Controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -107,6 +107,9 @@ class ViewControllerTest extends TestCase {
->expects($this->once())
->method('getStorageInfo')
->will($this->returnValue([
+ 'used' => 123,
+ 'quota' => 100,
+ 'total' => 100,
'relative' => 123,
'owner' => 'MyName',
'ownerDisplayName' => 'MyDisplayName',
@@ -125,6 +128,10 @@ class ViewControllerTest extends TestCase {
->will($this->returnArgument(2));
$nav = new Template('files', 'appnavigation');
+ $nav->assign('usage_relative', 123);
+ $nav->assign('usage', '123 B');
+ $nav->assign('quota', 100);
+ $nav->assign('total_space', '100 B');
$nav->assign('navigationItems', [
[
'id' => 'files',
@@ -256,6 +263,7 @@ class ViewControllerTest extends TestCase {
'content' => null,
],
],
+ 'hiddenFields' => [],
]
);
$policy = new Http\ContentSecurityPolicy();