Code Duplication    Length = 11-14 lines in 2 locations

lib/Command/Test.php 2 locations

@@ 577-590 (lines=14) @@
574
	 *
575
	 * @throws Exception
576
	 */
577
	private function searchGroups(
578
		OutputInterface $output, IFullTextSearchPlatform $testPlatform,
579
		IFullTextSearchProvider $testProvider, $groups, $expected
580
	) {
581
582
		$access = new DocumentAccess();
583
		$access->setViewerId(TestService::DOCUMENT_NOTUSER);
584
		$access->setGroups($groups);
585
586
		$this->search(
587
			$output, $testPlatform, $testProvider, $access, 'license',
588
			$expected, json_encode($groups)
589
		);
590
	}
591
592
593
	/**
@@ 602-612 (lines=11) @@
599
	 *
600
	 * @throws Exception
601
	 */
602
	private function searchUsers(
603
		OutputInterface $output, IFullTextSearchPlatform $testPlatform,
604
		IFullTextSearchProvider $testProvider, $user, $expected
605
	) {
606
		$access = new DocumentAccess();
607
		$access->setViewerId($user);
608
		$this->search(
609
			$output, $testPlatform, $testProvider, $access, 'license',
610
			$expected, $user
611
		);
612
	}
613
614
615
	/**