diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-09-23 13:56:59 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-09-26 13:44:50 +0200 |
commit | 4064010c29dcf471c62405e2ddf0e9420a089c2a (patch) | |
tree | 5e215d76842ed9f25c9f6f2c4575b0faa8d67c15 /apps/updatenotification/tests | |
parent | bf7cbe32c8b7b1f2586dd778b3d9816053c3f02b (diff) | |
download | nextcloud-server-4064010c29dcf471c62405e2ddf0e9420a089c2a.tar.gz nextcloud-server-4064010c29dcf471c62405e2ddf0e9420a089c2a.zip |
Revert "Fix tests"
This reverts commit 27a3c68d840f2a8d8d212ba4086df10e0969c5e3.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/updatenotification/tests')
-rw-r--r-- | apps/updatenotification/tests/Controller/AdminControllerTest.php | 7 | ||||
-rw-r--r-- | apps/updatenotification/tests/UpdateCheckerTest.php | 1 |
2 files changed, 1 insertions, 7 deletions
diff --git a/apps/updatenotification/tests/Controller/AdminControllerTest.php b/apps/updatenotification/tests/Controller/AdminControllerTest.php index 6d1ee219561..336edffc957 100644 --- a/apps/updatenotification/tests/Controller/AdminControllerTest.php +++ b/apps/updatenotification/tests/Controller/AdminControllerTest.php @@ -111,10 +111,7 @@ class AdminControllerTest extends TestCase { $this->updateChecker ->expects($this->once()) ->method('getUpdateState') - ->willReturn([ - 'updateVersion' => '8.1.2', - 'downloadLink' => 'https://downloads.nextcloud.org/server', - ]); + ->willReturn(['updateVersion' => '8.1.2']); $params = [ 'isNewVersionAvailable' => true, @@ -123,7 +120,6 @@ class AdminControllerTest extends TestCase { 'channels' => $channels, 'newVersionString' => '8.1.2', 'notify_groups' => 'admin', - 'downloadLink' => 'https://downloads.nextcloud.org/server', ]; $expected = new TemplateResponse('updatenotification', 'admin', $params, ''); @@ -168,7 +164,6 @@ class AdminControllerTest extends TestCase { 'channels' => $channels, 'newVersionString' => '', 'notify_groups' => 'admin', - 'downloadLink' => '', ]; $expected = new TemplateResponse('updatenotification', 'admin', $params, ''); diff --git a/apps/updatenotification/tests/UpdateCheckerTest.php b/apps/updatenotification/tests/UpdateCheckerTest.php index 38e64b6b5e5..ce19cc60f2c 100644 --- a/apps/updatenotification/tests/UpdateCheckerTest.php +++ b/apps/updatenotification/tests/UpdateCheckerTest.php @@ -74,7 +74,6 @@ class UpdateCheckerTest extends TestCase { 'updateAvailable' => true, 'updateVersion' => 'Nextcloud 123', 'updateLink' => 'https://docs.nextcloud.com/myUrl', - 'downloadLink' => 'https://downloads.nextcloud.org/server', ]; $this->assertSame($expected, $this->updateChecker->getUpdateState()); } |