Joas Schilling
ea0229dc86
test: Fix some apps/*/tests
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-05-15 08:26:15 +07:00
Christoph Wurst
49dd79eabb
refactor: Add void return type to PHPUnit test methods
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2024-09-15 22:32:31 +07:00
Andy Scherzinger
cc1686dba9
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-31 10:38:47 +07:00
Ferdinand Thiessen
2c87fbf207
fix(updatenotification): Adjust tests for changed IAppConfig
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-08 01:53:59 +07:00
Ferdinand Thiessen
9c1a87aec4
fix(updatenotification): Update tests to match with changed constructors
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-07 22:40:30 +07:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-24 14:54:25 +07:00
Morris Jobke
234b510652
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-12 13:55:19 +07:00
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
...
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 14:19:56 +07:00
Christoph Wurst
5bf3d1bb38
Update license headers
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-05 15:38:45 +07:00
Roeland Jago Douma
3a7cf40aaa
Mode to modern phpunit
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-27 15:27:18 +07:00
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-27 13:34:41 +07:00
Joas Schilling
19f7cc9e92
Make Update notficiations strict and fix all inspections
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-01-18 10:55:44 +07:00
Joas Schilling
7deb76e405
Split controller and settings
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-01-16 11:34:16 +07:00
Joas Schilling
50e1cee5c7
Automatic DI for Controllers also works
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-01-15 09:55:03 +07:00
Morris Jobke
0eebff152a
Update license headers
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-11-06 16:56:19 +07:00
Morris Jobke
9391d8fc60
Improve update notification layout and show non-default update server
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-08-02 13:56:36 +07:00
Morris Jobke
7f2e9d10a3
Show correct status in update notification
...
Sometimes it could be the case that after a channel change the last updated
timestamp is reset, but the check for updates is not yet completed. In this
case the update notification showed "You are up to date" and the date was
"1970-01-01 00:00:00". With this fix the state is properly shown.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-08-02 10:45:26 +07:00
Lukas Reschke
1602e82363
UpdateState is empty if no update is available
...
This leads to log messages such as "Undefined index: updaterEnabled at /media/psf/nextcloud/apps/updatenotification/lib/Controller/AdminController.php#116".
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-28 12:37:08 +07:00
Joas Schilling
3e00554d35
Respect updater kill switch and fall back to download button
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-09-27 14:47:59 +07:00
Morris Jobke
4064010c29
Revert "Fix tests"
...
This reverts commit 27a3c68d84 .
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-09-26 13:44:50 +07:00
Joas Schilling
27a3c68d84
Fix tests
2016-09-08 11:13:36 +07:00
Arthur Schiwon
717e22267a
Merge branch 'master' into implement_712
2016-08-16 18:31:59 +07:00
Lukas Reschke
7ffb7b0d84
Use MockBuilder instead of createMock
...
CI uses an older PHPUnit
2016-08-15 16:43:22 +07:00
Lukas Reschke
8a7a0f3287
Add unit tests
2016-08-15 16:25:34 +07:00
Roeland Jago Douma
3b948f7694
Fix deprecated getMock warning
2016-08-14 15:45:45 +07:00
Joas Schilling
813f0a0f40
Fix apps/
2016-07-21 18:13:57 +07:00
Lukas Reschke
aba539703c
Update license headers
2016-05-26 19:57:24 +07:00
Joas Schilling
338106124f
Fix failing update notifications tests
2016-05-25 12:11:51 +07:00
Joas Schilling
9ad4a89816
Move comments, systemtags and updatenotifications to PSR-4
2016-05-03 10:20:59 +07:00