Code Duplication    Length = 10-10 lines in 2 locations

tests/SearchableTest.php 2 locations

@@ 711-720 (lines=10) @@
708
709
		$tabset = $fields->findOrMakeTab('Root.ElasticaTerms');
710
		$tabNames = array();
711
		foreach($tabset->Tabs() as $tab) {
712
			$tabFields = array();
713
			foreach($tab->FieldList() as $field) {
714
				array_push($tabFields, $field->getName());
715
			}
716
			$expectedName = 'TermsFor' . $tab->getName(); ;
717
			$expected = array($expectedName);
718
			$this->assertEquals($expected, $tabFields);
719
			array_push($tabNames, $tab->getName());
720
		}
721
		$expected = array('Description', 'Description_shingles', 'Description_standard',
722
			'ShutterSpeed', 'TestMethod', 'TestMethod_shingles', 'TestMethod_standard',
723
			'TestMethodHTML', 'TestMethodHTML_shingles', 'TestMethodHTML_standard',
@@ 740-749 (lines=10) @@
737
738
		$tabset = $fields->findOrMakeTab('Root.ElasticaTerms');
739
		$tabNames = array();
740
		foreach($tabset->Tabs() as $tab) {
741
			$tabFields = array();
742
			foreach($tab->FieldList() as $field) {
743
				array_push($tabFields, $field->getName());
744
			}
745
			$expectedName = 'TermsFor' . $tab->getName(); ;
746
			$expected = array($expectedName);
747
			$this->assertEquals($expected, $tabFields);
748
			array_push($tabNames, $tab->getName());
749
		}
750
		$expected = array(
751
			'Content', 'Content_standard', 'Link', 'Title', 'Title_autocomplete', 'Title_shingles',
752
			'Title_standard');