@@ 724-733 (lines=10) @@ | ||
721 | ||
722 | $tabset = $fields->findOrMakeTab('Root.ElasticaTerms'); |
|
723 | $tabNames = array(); |
|
724 | foreach($tabset->Tabs() as $tab) { |
|
725 | $tabFields = array(); |
|
726 | foreach($tab->FieldList() as $field) { |
|
727 | array_push($tabFields, $field->getName()); |
|
728 | } |
|
729 | $expectedName = 'TermsFor' . $tab->getName(); ; |
|
730 | $expected = array($expectedName); |
|
731 | $this->assertEquals($expected, $tabFields); |
|
732 | array_push($tabNames, $tab->getName()); |
|
733 | } |
|
734 | $expected = array('Description', 'Description_shingles', 'Description_standard', |
|
735 | 'ShutterSpeed', 'TestMethod', 'TestMethod_shingles', 'TestMethod_standard', |
|
736 | 'TestMethodHTML', 'TestMethodHTML_shingles', 'TestMethodHTML_standard', |
|
@@ 756-765 (lines=10) @@ | ||
753 | ||
754 | $tabset = $fields->findOrMakeTab('Root.ElasticaTerms'); |
|
755 | $tabNames = array(); |
|
756 | foreach($tabset->Tabs() as $tab) { |
|
757 | $tabFields = array(); |
|
758 | foreach($tab->FieldList() as $field) { |
|
759 | array_push($tabFields, $field->getName()); |
|
760 | } |
|
761 | $expectedName = 'TermsFor' . $tab->getName(); ; |
|
762 | $expected = array($expectedName); |
|
763 | $this->assertEquals($expected, $tabFields); |
|
764 | array_push($tabNames, $tab->getName()); |
|
765 | } |
|
766 | $expected = array( |
|
767 | 'Content', 'Content_standard', 'Link', 'Title', 'Title_autocomplete', 'Title_shingles', |
|
768 | 'Title_standard'); |