diff options
author | Joas Schilling <coding@schilljs.com> | 2017-06-12 10:32:25 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-06-13 11:17:44 +0200 |
commit | b481fa40ef5cd3ae0f6cb1e17b6765197baa2340 (patch) | |
tree | ccd85393b7d85a27bd195a23c8458cdca6586dc9 | |
parent | 3a1713199570c70884257f742e67d0892df1a99a (diff) | |
download | nextcloud-server-b481fa40ef5cd3ae0f6cb1e17b6765197baa2340.tar.gz nextcloud-server-b481fa40ef5cd3ae0f6cb1e17b6765197baa2340.zip |
Adjust the unit test
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/files/tests/Controller/ViewControllerTest.php | 8 |
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(); |