Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
4064010c
Unverified
Commit
4064010c
authored
8 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Fix tests"
This reverts commit
27a3c68d
. Signed-off-by:
Morris Jobke
<
hey@morrisjobke.de
>
parent
bf7cbe32
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/updatenotification/tests/Controller/AdminControllerTest.php
+1
-6
1 addition, 6 deletions
...datenotification/tests/Controller/AdminControllerTest.php
apps/updatenotification/tests/UpdateCheckerTest.php
+0
-1
0 additions, 1 deletion
apps/updatenotification/tests/UpdateCheckerTest.php
with
1 addition
and
7 deletions
apps/updatenotification/tests/Controller/AdminControllerTest.php
+
1
−
6
View file @
4064010c
...
...
@@ -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
,
''
);
...
...
This diff is collapsed.
Click to expand it.
apps/updatenotification/tests/UpdateCheckerTest.php
+
0
−
1
View file @
4064010c
...
...
@@ -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
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment