Revert "Fix tests"

This reverts commit a44c1c748c.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2016-09-23 13:58:58 +02:00
parent 038a03540f
commit 341c3567a2
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
2 changed files with 1 additions and 7 deletions

View 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, '');

View 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());
}