From b9906fb21e9f1aadf14e473b8c26a2ec7537fa11 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Wed, 4 Jan 2023 19:06:52 +0100 Subject: feat(files): Quota in navigation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/tests/Controller/ViewControllerTest.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'apps/files/tests/Controller/ViewControllerTest.php') 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', -- cgit v1.2.3