Code Duplication    Length = 11-14 lines in 2 locations

lib/Command/Test.php 2 locations

@@ 565-578 (lines=14) @@
562
	 *
563
	 * @throws Exception
564
	 */
565
	private function searchGroups(
566
		OutputInterface $output, IFullTextSearchPlatform $testPlatform,
567
		IFullTextSearchProvider $testProvider, $groups, $expected
568
	) {
569
570
		$access = new DocumentAccess();
571
		$access->setViewerId(TestService::DOCUMENT_NOTUSER);
572
		$access->setGroups($groups);
573
574
		$this->search(
575
			$output, $testPlatform, $testProvider, $access, 'license',
576
			$expected, json_encode($groups)
577
		);
578
	}
579
580
581
	/**
@@ 590-600 (lines=11) @@
587
	 *
588
	 * @throws Exception
589
	 */
590
	private function searchUsers(
591
		OutputInterface $output, IFullTextSearchPlatform $testPlatform,
592
		IFullTextSearchProvider $testProvider, $user, $expected
593
	) {
594
		$access = new DocumentAccess();
595
		$access->setViewerId($user);
596
		$this->search(
597
			$output, $testPlatform, $testProvider, $access, 'license',
598
			$expected, $user
599
		);
600
	}
601
602
603
	/**