diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-06-06 11:24:32 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-06-06 11:49:50 +0200 |
commit | 23ca2a44291e415ba455be5bca758bfa484c3fea (patch) | |
tree | 29de15f7337dbba24c4db4134c737c9f303b78ab /tests/Settings | |
parent | f30c14a6a27a937df8f53c056293ff15c0e3755c (diff) | |
download | nextcloud-server-23ca2a44291e415ba455be5bca758bfa484c3fea.tar.gz nextcloud-server-23ca2a44291e415ba455be5bca758bfa484c3fea.zip |
Fix AppSettingsControllerTest
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/Settings')
-rw-r--r-- | tests/Settings/Controller/AppSettingsControllerTest.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/Settings/Controller/AppSettingsControllerTest.php b/tests/Settings/Controller/AppSettingsControllerTest.php index 7190d2cb6c5..14f2c8f47bd 100644 --- a/tests/Settings/Controller/AppSettingsControllerTest.php +++ b/tests/Settings/Controller/AppSettingsControllerTest.php @@ -176,6 +176,9 @@ class AppSettingsControllerTest extends TestCase { public function testViewApps() { $this->bundleFetcher->expects($this->once())->method('getBundles')->willReturn([]); + $this->installer->expects($this->any()) + ->method('isUpdateAvailable') + ->willReturn(false); $this->config ->expects($this->once()) ->method('getSystemValue') @@ -193,9 +196,8 @@ class AppSettingsControllerTest extends TestCase { 'settings', [ 'serverData' => [ - 'updateCount' => 67, + 'updateCount' => 0, 'appstoreEnabled' => true, - 'urlGenerator' => $this->urlGenerator, 'bundles' => [], 'developerDocumentation' => '' ] @@ -207,6 +209,9 @@ class AppSettingsControllerTest extends TestCase { } public function testViewAppsAppstoreNotEnabled() { + $this->installer->expects($this->any()) + ->method('isUpdateAvailable') + ->willReturn(false); $this->bundleFetcher->expects($this->once())->method('getBundles')->willReturn([]); $this->config ->expects($this->once()) @@ -225,9 +230,8 @@ class AppSettingsControllerTest extends TestCase { 'settings', [ 'serverData' => [ - 'updateCount' => 67, + 'updateCount' => 0, 'appstoreEnabled' => false, - 'urlGenerator' => $this->urlGenerator, 'bundles' => [], 'developerDocumentation' => '' ] |