diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-01-08 13:08:18 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-01-08 13:08:59 +0100 |
commit | b17c5fec40769ffc0b96c42618048046beb8f85e (patch) | |
tree | 0b536c980ba17bf90f27534f6e6fda6a9084c27e /apps/user_ldap/lib/Jobs | |
parent | e4310648dfcc57618c4a0d61ae73f889e08f3b53 (diff) | |
download | nextcloud-server-b17c5fec40769ffc0b96c42618048046beb8f85e.tar.gz nextcloud-server-b17c5fec40769ffc0b96c42618048046beb8f85e.zip |
add unit test for qualifies to run
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/Jobs')
-rw-r--r-- | apps/user_ldap/lib/Jobs/Sync.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Jobs/Sync.php b/apps/user_ldap/lib/Jobs/Sync.php index 38eba5ca4bf..7a1f7703e5c 100644 --- a/apps/user_ldap/lib/Jobs/Sync.php +++ b/apps/user_ldap/lib/Jobs/Sync.php @@ -118,7 +118,7 @@ class Sync extends TimedJob { /** * @param array $argument */ - protected function run($argument) { + public function run($argument) { $this->setArgument($argument); $isBackgroundJobModeAjax = $this->config @@ -252,7 +252,7 @@ class Sync extends TimedJob { * @param $cycleData * @return bool */ - protected function qualifiesToRun($cycleData) { + public function qualifiesToRun($cycleData) { $lastChange = $this->config->getAppValue('user_ldap', $cycleData['prefix'] . '_lastChange', 0); if((time() - $lastChange) > 60 * 30) { return true; |