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