aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-16 20:55:38 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-08-17 09:45:11 +0200
commit1c38a83927ba318b1ef5115c0fe2fda0cdb5e454 (patch)
tree6d2ce15eb24ffb1debefe5236bb69ce01763a08c /tests/lib/Settings
parentf0eb882c2e72e1c855ec3ddc0dfe87936babbd76 (diff)
downloadnextcloud-server-1c38a83927ba318b1ef5115c0fe2fda0cdb5e454.tar.gz
nextcloud-server-1c38a83927ba318b1ef5115c0fe2fda0cdb5e454.zip
Always log cron execution
There was a setting to disable the last execution of cron. There is no known problem with this write access and it was also questioned when this feature was build in https://github.com/owncloud/core/pull/7689#issuecomment-38264707 Recently there was also a bug report about a non-visible last cron execution (#6088) - let's better remove this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/Settings')
-rw-r--r--tests/lib/Settings/Admin/ServerTest.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/lib/Settings/Admin/ServerTest.php b/tests/lib/Settings/Admin/ServerTest.php
index a71aef0178e..106390f25a5 100644
--- a/tests/lib/Settings/Admin/ServerTest.php
+++ b/tests/lib/Settings/Admin/ServerTest.php
@@ -80,12 +80,12 @@ class ServerTest extends TestCase {
->with('core', 'backgroundjobs_mode', 'ajax')
->willReturn('ajax');
$this->config
- ->expects($this->at(4))
+ ->expects($this->at(3))
->method('getAppValue')
->with('core', 'lastcron', false)
->willReturn(false);
$this->config
- ->expects($this->at(5))
+ ->expects($this->at(4))
->method('getAppValue')
->with('core', 'cronErrors')
->willReturn('');
@@ -94,11 +94,6 @@ class ServerTest extends TestCase {
->method('getSystemValue')
->with('check_for_working_wellknown_setup', true)
->willReturn(true);
- $this->config
- ->expects($this->at(3))
- ->method('getSystemValue')
- ->with('cron_log', true)
- ->willReturn(true);
$this->l10n
->expects($this->at(0))
->method('t')
@@ -139,7 +134,6 @@ class ServerTest extends TestCase {
// Background jobs
'backgroundjobs_mode' => 'ajax',
- 'cron_log' => true,
'lastcron' => false,
'cronErrors' => '',
'cli_based_cron_possible' => true,