summaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller/ViewControllerTest.php
diff options
context:
space:
mode:
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',