@@ -132,6 +132,10 @@ discard block |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | |
135 | + /** |
|
136 | + * @param integer $depth |
|
137 | + * @param string $parentKey |
|
138 | + */ |
|
135 | 139 | private function recurseArrayAssertion($toAssert, $depth, $parentKey) { |
136 | 140 | $prefix = str_repeat("\t",$depth); |
137 | 141 | echo "\t{$prefix}'$parentKey' => array(\n"; |
@@ -160,6 +164,10 @@ discard block |
||
160 | 164 | /* |
161 | 165 | Helper methods for testing CMS fields |
162 | 166 | */ |
167 | + |
|
168 | + /** |
|
169 | + * @param string $tabName |
|
170 | + */ |
|
163 | 171 | public function checkTabExists($fields, $tabName) { |
164 | 172 | echo "Searching for tab $tabName\n"; |
165 | 173 | $tab = $fields->findOrMakeTab("Root.{$tabName}"); |
@@ -184,6 +192,9 @@ discard block |
||
184 | 192 | } |
185 | 193 | |
186 | 194 | |
195 | + /** |
|
196 | + * @param string $fieldName |
|
197 | + */ |
|
187 | 198 | public function checkFieldExists($tab,$fieldName) { |
188 | 199 | $fields = $tab->Fields(); |
189 | 200 | echo "TAB:{$tab->Name}\n"; |