Code Duplication    Length = 10-10 lines in 2 locations

tests/SearchableTest.php 2 locations

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