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