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