]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust the unit test
authorJoas Schilling <coding@schilljs.com>
Mon, 12 Jun 2017 08:32:25 +0000 (10:32 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 13 Jun 2017 17:28:13 +0000 (12:28 -0500)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files/tests/Controller/ViewControllerTest.php

index 2e497405a4d9064ac894267f43fdb8b17c567dd1..db86e0037ef920a04cb7337c6180683de6ec85f5 100644 (file)
@@ -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();