Code Duplication    Length = 11-14 lines in 2 locations

lib/Command/Test.php 2 locations

@@ 625-638 (lines=14) @@
622
	 *
623
	 * @throws Exception
624
	 */
625
	private function searchGroups(
626
		OutputInterface $output, IFullTextSearchPlatform $testPlatform,
627
		IFullTextSearchProvider $testProvider, array $groups, array $expected
628
	) {
629
630
		$access = new DocumentAccess();
631
		$access->setViewerId(TestService::DOCUMENT_NOTUSER);
632
		$access->setGroups($groups);
633
634
		$this->search(
635
			$output, $testPlatform, $testProvider, $access, 'license',
636
			$expected, json_encode($groups)
637
		);
638
	}
639
640
641
	/**
@@ 650-660 (lines=11) @@
647
	 *
648
	 * @throws Exception
649
	 */
650
	private function searchUsers(
651
		OutputInterface $output, IFullTextSearchPlatform $testPlatform,
652
		IFullTextSearchProvider $testProvider, string $user, array $expected
653
	) {
654
		$access = new DocumentAccess();
655
		$access->setViewerId($user);
656
		$this->search(
657
			$output, $testPlatform, $testProvider, $access, 'license',
658
			$expected, $user
659
		);
660
	}
661
662
663
	/**