| @@ 603-616 (lines=14) @@ | ||
| 600 | * |
|
| 601 | * @throws Exception |
|
| 602 | */ |
|
| 603 | private function searchGroups( |
|
| 604 | OutputInterface $output, IFullTextSearchPlatform $testPlatform, |
|
| 605 | IFullTextSearchProvider $testProvider, array $groups, array $expected |
|
| 606 | ) { |
|
| 607 | ||
| 608 | $access = new DocumentAccess(); |
|
| 609 | $access->setViewerId(TestService::DOCUMENT_NOTUSER); |
|
| 610 | $access->setGroups($groups); |
|
| 611 | ||
| 612 | $this->search( |
|
| 613 | $output, $testPlatform, $testProvider, $access, 'license', |
|
| 614 | $expected, json_encode($groups) |
|
| 615 | ); |
|
| 616 | } |
|
| 617 | ||
| 618 | ||
| 619 | /** |
|
| @@ 628-638 (lines=11) @@ | ||
| 625 | * |
|
| 626 | * @throws Exception |
|
| 627 | */ |
|
| 628 | private function searchUsers( |
|
| 629 | OutputInterface $output, IFullTextSearchPlatform $testPlatform, |
|
| 630 | IFullTextSearchProvider $testProvider, string $user, array $expected |
|
| 631 | ) { |
|
| 632 | $access = new DocumentAccess(); |
|
| 633 | $access->setViewerId($user); |
|
| 634 | $this->search( |
|
| 635 | $output, $testPlatform, $testProvider, $access, 'license', |
|
| 636 | $expected, $user |
|
| 637 | ); |
|
| 638 | } |
|
| 639 | ||
| 640 | ||
| 641 | /** |
|