summaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ViewControllerTest.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-01-04 19:06:52 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-01-17 18:30:41 +0100
commitb9906fb21e9f1aadf14e473b8c26a2ec7537fa11 (patch)
tree3b068eb999c675760d715e78da2d5eee8668cb44 /apps/files/tests/Controller/ViewControllerTest.php
parent9af7ee8d11b43a7a3d14f7aa8390aff0a4174f55 (diff)
downloadnextcloud-server-b9906fb21e9f1aadf14e473b8c26a2ec7537fa11.tar.gz
nextcloud-server-b9906fb21e9f1aadf14e473b8c26a2ec7537fa11.zip
feat(files): Quota in navigation
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/tests/Controller/ViewControllerTest.php')
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index 6ab09011e1f..08ec7d17a1d 100644
--- a/apps/files/tests/Controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -139,7 +139,7 @@ class ViewControllerTest extends TestCase {
public function testIndexWithRegularBrowser() {
$this->viewController
- ->expects($this->once())
+ ->expects($this->any())
->method('getStorageInfo')
->willReturn([
'used' => 123,
@@ -160,17 +160,13 @@ class ViewControllerTest extends TestCase {
]);
$this->config
- ->expects($this->any())
- ->method('getAppValue')
- ->willReturnArgument(2);
+ ->expects($this->any())
+ ->method('getAppValue')
+ ->willReturnArgument(2);
$this->shareManager->method('shareApiAllowLinks')
->willReturn(true);
$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', [
'files' => [
'id' => 'files',