summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-11-03 14:11:37 +0100
committerGitHub <noreply@github.com>2016-11-03 14:11:37 +0100
commit7ba7949dc12cc444399a3681904a3d0dd2d2ee32 (patch)
tree4092955e6d75bd5e2dffc56890ea4001a01f5d12 /tests/lib
parentb129adfb58eb98a37278dbd5a2f30b52c90cb4fc (diff)
parent074134638538fd95d484ccd041da9a96cdfb6b3c (diff)
downloadnextcloud-server-7ba7949dc12cc444399a3681904a3d0dd2d2ee32.tar.gz
nextcloud-server-7ba7949dc12cc444399a3681904a3d0dd2d2ee32.zip
Merge pull request #1994 from nextcloud/proper-cron-hints
Show a hint for system based cron user name
Diffstat (limited to 'tests/lib')
-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
],
''
);