From cf915b0f754fa1558e31af96d42d825f7b0e8017 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 8 Jan 2018 13:46:07 +0100 Subject: [PATCH] extend test for rotating prefixes Signed-off-by: Arthur Schiwon --- apps/user_ldap/tests/Jobs/SyncTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/tests/Jobs/SyncTest.php b/apps/user_ldap/tests/Jobs/SyncTest.php index 62f1547213..f8852a4666 100644 --- a/apps/user_ldap/tests/Jobs/SyncTest.php +++ b/apps/user_ldap/tests/Jobs/SyncTest.php @@ -265,7 +265,7 @@ class SyncTest extends TestCase { 'expectedNextCycle' => ['prefix' => '', 'offset' => '0'], 'mappedUsers' => 123, ]], - #0 - 2 LDAP servers, next prefix + #1 - 2 LDAP servers, next prefix [[ 'prefixes' => ['', 's01'], 'scheduledCycle' => ['prefix' => '', 'offset' => '4500'], @@ -274,6 +274,15 @@ class SyncTest extends TestCase { 'expectedNextCycle' => ['prefix' => 's01', 'offset' => '0'], 'mappedUsers' => 123, ]], + #2 - 2 LDAP servers, rotate prefix + [[ + 'prefixes' => ['', 's01'], + 'scheduledCycle' => ['prefix' => 's01', 'offset' => '4500'], + 'pagingSize' => 500, + 'usersThisCycle' => 0, + 'expectedNextCycle' => ['prefix' => '', 'offset' => '0'], + 'mappedUsers' => 123, + ]], ]; }