summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-11-03 10:18:16 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-11-03 10:38:00 +0100
commit074134638538fd95d484ccd041da9a96cdfb6b3c (patch)
tree7326826172e7994df732c5cd28fbf4da3bcccbb7 /tests
parent9ebbb3c6549200cc3c0c2a5daeabd5e64f898133 (diff)
downloadnextcloud-server-074134638538fd95d484ccd041da9a96cdfb6b3c.tar.gz
nextcloud-server-074134638538fd95d484ccd041da9a96cdfb6b3c.zip
Show a hint for system based cron user name
* makes it easier to setup cron job * gives hints for PHP documentation * disables the cron setting if requirements not met * fixes #1989 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Settings/Admin/ServerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Settings/Admin/ServerTest.php b/tests/lib/Settings/Admin/ServerTest.php
index 874422307e0..43892c408b0 100644
--- a/tests/lib/Settings/Admin/ServerTest.php
+++ b/tests/lib/Settings/Admin/ServerTest.php
@@ -136,7 +136,9 @@ class ServerTest extends TestCase {
'backgroundjobs_mode' => 'ajax',
'cron_log' => true,
'lastcron' => false,
- 'cronErrors' => ''
+ 'cronErrors' => '',
+ 'cli_based_cron_possible' => true,
+ 'cli_based_cron_user' => function_exists('posix_getpwuid') ? posix_getpwuid(fileowner(\OC::$configDir . 'config.php'))['name'] : '', // to not explode here because of posix extension not being disabled - which is already checked in the line above
],
''
);