extend test for rotating prefixes

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2018-01-08 13:46:07 +01:00
parent 7c3db54ff6
commit cf915b0f75
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 10 additions and 1 deletions

View File

@ -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,
]],
];
}