]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "Fix tests"
authorMorris Jobke <hey@morrisjobke.de>
Fri, 23 Sep 2016 11:58:58 +0000 (13:58 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 26 Sep 2016 11:47:58 +0000 (13:47 +0200)
This reverts commit a44c1c748c935422f530a592f57c5dc5609a8072.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/updatenotification/tests/Controller/AdminControllerTest.php
apps/updatenotification/tests/UpdateCheckerTest.php

index 92d2ee6dbe9c7f8a91b7b90d1340406f58030489..cf99679e680af86f03e11b2e0d2946254d694f75 100644 (file)
@@ -110,10 +110,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,
@@ -122,7 +119,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, '');
@@ -167,7 +163,6 @@ class AdminControllerTest extends TestCase {
                        'channels' => $channels,
                        'newVersionString' => '',
                        'notify_groups' => 'admin',
-                       'downloadLink' => '',
                ];
 
                $expected = new TemplateResponse('updatenotification', 'admin', $params, '');
index 38e64b6b5e55c1b83d532093007390e3da4bf94d..ce19cc60f2c7c0febd2b97dfe8d8efa2e7aa6764 100644 (file)
@@ -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());
        }