Skip to content

Commit aec0aba

Browse files
committed
Add a sync test for the client methods.
1 parent 86b02bc commit aec0aba

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of the FreeDSx LDAP package.
7+
*
8+
* (c) Chad Sikorra <[email protected]>
9+
*
10+
* For the full copyright and license information, please view the LICENSE
11+
* file that was distributed with this source code.
12+
*/
13+
14+
namespace integration\FreeDSx\Ldap\Sync;
15+
16+
use FreeDSx\Ldap\Sync\Result\SyncEntryResult;
17+
use integration\FreeDSx\Ldap\LdapTestCase;
18+
19+
class SyncReplTest extends LdapTestCase
20+
{
21+
public function testItCanPerformPollingSync(): void
22+
{
23+
$entries = [];
24+
25+
$client = $this->getClient();
26+
$this->bindClient($client);
27+
28+
$client
29+
->syncRepl()
30+
->poll(fn(SyncEntryResult $result) => array_push($entries, $result));
31+
32+
$this->assertGreaterThan(
33+
0,
34+
$entries,
35+
);
36+
}
37+
}

0 commit comments

Comments
 (0)