@@ 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_stemmed', 'Description_shingles', 'Description_unstemmed', |
|
723 | 'ShutterSpeed_stemmed', 'TestMethod_stemmed', 'TestMethod_shingles', 'TestMethod_unstemmed', |
|
724 | 'TestMethodHTML_stemmed', 'TestMethodHTML_shingles', 'TestMethodHTML_unstemmed', |
|
@@ 741-747 (lines=7) @@ | ||
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 | array_push($tabNames, $tab->getName()); |
|
747 | } |
|
748 | $expected = array( |
|
749 | 'Content_stemmed', 'Content_unstemmed', 'Link_stemmed', |
|
750 | 'Title_stemmed', 'Title_autocomplete', 'Title_shingles', |