‪TYPO3CMS  10.4
AbstractFormFieldViewHelperTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 
26 {
31  {
32  $formViewHelper = $this->getAccessibleMock(
33  AbstractFormFieldViewHelper::class,
34  ['isObjectAccessorMode'],
35  [],
36  '',
37  false
38  );
39  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
40 
41  self::assertFalse($formViewHelper->_call('getRespectSubmittedDataValue'));
42  }
43 
44  /*
45  * @test
46  */
48  {
49  $formViewHelper = $this->getAccessibleMock(
50  AbstractFormFieldViewHelper::class,
51  ['isObjectAccessorMode'],
52  [],
53  '',
54  false
55  );
56  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
57 
58  $formViewHelper->_set('respectSubmittedDataValue', true);
59  self::assertTrue($formViewHelper->_call('getRespectSubmittedDataValue'));
60  }
61 
66  ) {
67  $formViewHelper = $this->getAccessibleMock(
68  AbstractFormFieldViewHelper::class,
69  ['isObjectAccessorMode', 'addAdditionalIdentityPropertiesIfNeeded'],
70  [],
71  '',
72  false
73  );
74  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
75  $formViewHelper->_set('respectSubmittedDataValue', false);
76 
77  $mockObject = new ‪ClassWithTwoGetters('testing', 1476108385);
78 
79  $formViewHelper->expects(self::any())->method('isObjectAccessorMode')->willReturn(true);
80  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'formObject')
81  ->willReturn($mockObject);
82  $this->viewHelperVariableContainer->exists(
83  FormViewHelper::class,
84  'formObject'
85  )->willReturn(true);
86 
87  $arguments = ['name' => null, 'value' => null, 'property' => 'value.something'];
88  $formViewHelper->_set('arguments', $arguments);
89  $expected = 'MyString';
90  $actual = $formViewHelper->_call('getValueAttribute');
91  self::assertSame($expected, $actual);
92  }
93 
98  {
99  $formViewHelper = $this->getAccessibleMock(
100  AbstractFormFieldViewHelper::class,
101  ['isObjectAccessorMode'],
102  [],
103  '',
104  false
105  );
106  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
107 
108  $formViewHelper->expects(self::any())->method('isObjectAccessorMode')->willReturn(true);
109  $this->viewHelperVariableContainer->get(
110  FormViewHelper::class,
111  'formObjectName'
112  )->willReturn('myObjectName');
113  $this->viewHelperVariableContainer->exists(
114  FormViewHelper::class,
115  'fieldNamePrefix'
116  )->willReturn(true);
117  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'fieldNamePrefix')
118  ->willReturn('formPrefix');
119 
120  $arguments = ['name' => 'fieldName', 'value' => 'fieldValue', 'property' => 'bla'];
121  $formViewHelper->_set('arguments', $arguments);
122  $expected = 'formPrefix[myObjectName][bla]';
123  $actual = $formViewHelper->_call('getName');
124  self::assertSame($expected, $actual);
125  }
126 
131  {
132  $formViewHelper = $this->getAccessibleMock(
133  AbstractFormFieldViewHelper::class,
134  ['isObjectAccessorMode'],
135  [],
136  '',
137  false
138  );
139  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
140 
141  $formViewHelper->expects(self::any())->method('isObjectAccessorMode')->willReturn(true);
142  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'formObjectName')
143  ->willReturn('myObjectName');
144  $this->viewHelperVariableContainer->exists(
145  FormViewHelper::class,
146  'fieldNamePrefix'
147  )->willReturn(true);
148  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'fieldNamePrefix')
149  ->willReturn('formPrefix');
150 
151  $arguments = ['name' => 'fieldName', 'value' => 'fieldValue', 'property' => 'bla.blubb'];
152  $formViewHelper->_set('arguments', $arguments);
153  $expected = 'formPrefix[myObjectName][bla][blubb]';
154  $actual = $formViewHelper->_call('getName');
155  self::assertSame($expected, $actual);
156  }
157 
162  ) {
163  $formViewHelper = $this->getAccessibleMock(
164  AbstractFormFieldViewHelper::class,
165  ['isObjectAccessorMode'],
166  [],
167  '',
168  false
169  );
170  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
171 
172  $formViewHelper->expects(self::any())->method('isObjectAccessorMode')->willReturn(true);
173  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'formObjectName')
174  ->willReturn(null);
175  $this->viewHelperVariableContainer->exists(
176  FormViewHelper::class,
177  'fieldNamePrefix'
178  )->willReturn(true);
179  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'fieldNamePrefix')
180  ->willReturn('formPrefix');
181 
182  $arguments = ['name' => 'fieldName', 'value' => 'fieldValue', 'property' => 'bla'];
183  $formViewHelper->_set('arguments', $arguments);
184  $expected = 'formPrefix[bla]';
185  $actual = $formViewHelper->_call('getName');
186  self::assertSame($expected, $actual);
187  }
188 
193  {
194  $formViewHelper = $this->getAccessibleMock(
195  AbstractFormFieldViewHelper::class,
196  ['isObjectAccessorMode'],
197  [],
198  '',
199  false
200  );
201  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
202 
203  $formViewHelper->expects(self::any())->method('isObjectAccessorMode')->willReturn(false);
204  $this->viewHelperVariableContainer->exists(
205  FormViewHelper::class,
206  'fieldNamePrefix'
207  )->willReturn(true);
208  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'fieldNamePrefix')
209  ->willReturn('formPrefix');
210 
211  $arguments = ['name' => 'fieldName', 'value' => 'fieldValue', 'property' => 'bla'];
212  $formViewHelper->_set('arguments', $arguments);
213  $expected = 'formPrefix[fieldName]';
214  $actual = $formViewHelper->_call('getName');
215  self::assertSame($expected, $actual);
216  }
217 
222  {
223  $formViewHelper = $this->getAccessibleMock(
224  AbstractFormFieldViewHelper::class,
225  ['dummy'],
226  [],
227  '',
228  false
229  );
230  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
231 
232  $this->viewHelperVariableContainer->exists(FormViewHelper::class, 'formObjectName')
233  ->willReturn(true);
234 
235  $formViewHelper->_set('arguments', ['name' => null, 'value' => null, 'property' => 'bla']);
236  self::assertTrue($formViewHelper->_call('isObjectAccessorMode'));
237 
238  $formViewHelper->_set('arguments', ['name' => null, 'value' => null, 'property' => null]);
239  self::assertFalse($formViewHelper->_call('isObjectAccessorMode'));
240  }
241 
246  {
247  $formFieldViewHelper = $this->getAccessibleMock(
248  AbstractFormFieldViewHelper::class,
249  ['renderHiddenIdentityField'],
250  [],
251  '',
252  false
253  );
254  $this->‪injectDependenciesIntoViewHelper($formFieldViewHelper);
255  $arguments = ['property' => 'simple'];
256  $formFieldViewHelper->expects(self::any())->method('renderHiddenIdentityField')->will(
257  self::throwException(new \Exception('Should not be executed!!!', 1476108413))
258  );
259  $formFieldViewHelper->_set('arguments', $arguments);
260  $formFieldViewHelper->_call('addAdditionalIdentityPropertiesIfNeeded');
261  }
262 
267  {
268  $mockFormObject = new ‪ClassWithTwoGetters();
269 
270  $property = 'value.something';
271  $objectName = 'myObject';
272  $expectedProperty = 'myObject[value]';
273 
274  $formFieldViewHelper = $this->getAccessibleMock(
275  AbstractFormFieldViewHelper::class,
276  ['renderHiddenIdentityField', 'isObjectAccessorMode'],
277  [],
278  '',
279  false
280  );
281  $this->‪injectDependenciesIntoViewHelper($formFieldViewHelper);
282  $arguments = ['property' => $property];
283  $formFieldViewHelper->_set('arguments', $arguments);
284  $formFieldViewHelper->expects(self::atLeastOnce())->method('isObjectAccessorMode')->willReturn(
285  true
286  );
287  $this->viewHelperVariableContainer->exists(FormViewHelper::class, 'formObject')
288  ->willReturn(true);
289  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'formObject')
290  ->willReturn($mockFormObject);
291  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'formObjectName')
292  ->willReturn($objectName);
293  $this->viewHelperVariableContainer->get(
294  FormViewHelper::class,
295  'additionalIdentityProperties'
296  )->willReturn([]);
297  $this->viewHelperVariableContainer->addOrUpdate(
298  FormViewHelper::class,
299  'additionalIdentityProperties',
300  [$expectedProperty => null]
301  )->willReturn();
302 
303  $formFieldViewHelper->expects(self::once())->method('renderHiddenIdentityField')->with(
304  $mockFormObject,
305  $expectedProperty
306  );
307 
308  $formFieldViewHelper->_call('addAdditionalIdentityPropertiesIfNeeded');
309  }
310 
315  ) {
316  $mockFormObject = new ‪ClassWithTwoGetters();
317  $property = 'value.value.something';
318  $objectName = 'myObject';
319  $expectedProperty1 = 'myObject[value]';
320  $expectedProperty2 = 'myObject[value][value]';
321 
322  $formFieldViewHelper = $this->getAccessibleMock(
323  AbstractFormFieldViewHelper::class,
324  ['renderHiddenIdentityField', 'isObjectAccessorMode'],
325  [],
326  '',
327  false
328  );
329  $this->‪injectDependenciesIntoViewHelper($formFieldViewHelper);
330  $arguments = ['property' => $property];
331  $formFieldViewHelper->_set('arguments', $arguments);
332  $formFieldViewHelper->expects(self::atLeastOnce())->method('isObjectAccessorMode')->willReturn(
333  true
334  );
335  $this->viewHelperVariableContainer->exists(FormViewHelper::class, 'formObject')
336  ->willReturn(true);
337  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'formObject')
338  ->willReturn($mockFormObject);
339  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'formObjectName')
340  ->willReturn($objectName);
341  $this->viewHelperVariableContainer->get(
342  FormViewHelper::class,
343  'additionalIdentityProperties'
344  )->willReturn([]);
345  $this->viewHelperVariableContainer->addOrUpdate(
346  FormViewHelper::class,
347  'additionalIdentityProperties',
348  [$expectedProperty1 => null]
349  )->willReturn();
350  $this->viewHelperVariableContainer->addOrUpdate(
351  FormViewHelper::class,
352  'additionalIdentityProperties',
353  [$expectedProperty2 => null]
354  )->willReturn();
355 
356  $formFieldViewHelper->expects(self::exactly(2))->method('renderHiddenIdentityField')->withConsecutive(
357  [$mockFormObject, $expectedProperty1],
358  [$mockFormObject, $expectedProperty2]
359  );
360 
361  $formFieldViewHelper->_call('addAdditionalIdentityPropertiesIfNeeded');
362  }
363 
368  {
369  $formViewHelper = $this->getAccessibleMock(
370  AbstractFormFieldViewHelper::class,
371  ['getName'],
372  [],
373  '',
374  false
375  );
376  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
377  $formViewHelper->expects(self::any())->method('getName')->willReturn('SomeFieldName');
378  $this->viewHelperVariableContainer->exists(
379  FormViewHelper::class,
380  'renderedHiddenFields'
381  )->willReturn(true);
382  $this->viewHelperVariableContainer->get(
383  FormViewHelper::class,
384  'renderedHiddenFields'
385  )->willReturn([]);
386  $this->viewHelperVariableContainer->addOrUpdate(
387  FormViewHelper::class,
388  'renderedHiddenFields',
389  ['SomeFieldName']
390  )->willReturn();
391  $expected = '<input type="hidden" name="SomeFieldName" value="" />';
392  $actual = $formViewHelper->_call('renderHiddenFieldForEmptyValue');
393  self::assertEquals($expected, $actual);
394  }
395 
400  {
401  $formViewHelper = $this->getAccessibleMock(
402  AbstractFormFieldViewHelper::class,
403  ['getName'],
404  [],
405  '',
406  false
407  );
408  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
409  $formViewHelper->expects(self::any())->method('getName')->willReturn('NewFieldName');
410  $this->viewHelperVariableContainer->exists(
411  FormViewHelper::class,
412  'renderedHiddenFields'
413  )->willReturn(true);
414  $this->viewHelperVariableContainer->get(
415  FormViewHelper::class,
416  'renderedHiddenFields'
417  )->willReturn(['OldFieldName']);
418  $this->viewHelperVariableContainer->addOrUpdate(
419  FormViewHelper::class,
420  'renderedHiddenFields',
421  ['OldFieldName', 'NewFieldName']
422  )->willReturn();
423  $formViewHelper->_call('renderHiddenFieldForEmptyValue');
424  }
425 
430  {
431  $formViewHelper = $this->getAccessibleMock(
432  AbstractFormFieldViewHelper::class,
433  ['getName'],
434  [],
435  '',
436  false
437  );
438  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
439  $formViewHelper->expects(self::any())->method('getName')->willReturn('SomeFieldName');
440  $this->viewHelperVariableContainer->exists(
441  FormViewHelper::class,
442  'renderedHiddenFields'
443  )->willReturn(true);
444  $this->viewHelperVariableContainer->get(
445  FormViewHelper::class,
446  'renderedHiddenFields'
447  )->willReturn(['SomeFieldName']);
448  $expected = '';
449  $actual = $formViewHelper->_call('renderHiddenFieldForEmptyValue');
450  self::assertEquals($expected, $actual);
451  }
452 
457  {
458  $formViewHelper = $this->getAccessibleMock(
459  AbstractFormFieldViewHelper::class,
460  ['getName'],
461  [],
462  '',
463  false
464  );
465  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
466  $formViewHelper->expects(self::any())->method('getName')->willReturn(
467  'SomeFieldName[WithBrackets][]'
468  );
469  $this->viewHelperVariableContainer->exists(
470  FormViewHelper::class,
471  'renderedHiddenFields'
472  )->willReturn(true);
473  $this->viewHelperVariableContainer->get(
474  FormViewHelper::class,
475  'renderedHiddenFields'
476  )->willReturn([]);
477  $this->viewHelperVariableContainer->addOrUpdate(
478  FormViewHelper::class,
479  'renderedHiddenFields',
480  ['SomeFieldName[WithBrackets]']
481  )->willReturn();
482  $expected = '<input type="hidden" name="SomeFieldName[WithBrackets]" value="" />';
483  $actual = $formViewHelper->_call('renderHiddenFieldForEmptyValue');
484  self::assertEquals($expected, $actual);
485  }
486 
491  {
492  $formViewHelper = $this->getAccessibleMock(
493  AbstractFormFieldViewHelper::class,
494  ['getName'],
495  [],
496  '',
497  false
498  );
499  $this->‪injectDependenciesIntoViewHelper($formViewHelper);
500  $formViewHelper->expects(self::any())->method('getName')->willReturn(
501  'SomeFieldName[WithBrackets][foo]'
502  );
503  $this->viewHelperVariableContainer->exists(
504  FormViewHelper::class,
505  'renderedHiddenFields'
506  )->willReturn(true);
507  $this->viewHelperVariableContainer->get(
508  FormViewHelper::class,
509  'renderedHiddenFields'
510  )->willReturn([]);
511  $this->viewHelperVariableContainer->addOrUpdate(
512  FormViewHelper::class,
513  'renderedHiddenFields',
514  ['SomeFieldName[WithBrackets][foo]']
515  )->willReturn();
516  $expected = '<input type="hidden" name="SomeFieldName[WithBrackets][foo]" value="" />';
517  $actual = $formViewHelper->_call('renderHiddenFieldForEmptyValue');
518  self::assertEquals($expected, $actual);
519  }
520 
525  {
526  $formFieldViewHelper = $this->getAccessibleMock(
527  AbstractFormFieldViewHelper::class,
528  ['renderHiddenIdentityField'],
529  [],
530  '',
531  false
532  );
533 
534  $this->‪injectDependenciesIntoViewHelper($formFieldViewHelper);
535  $formFieldViewHelper->_set('arguments', ['property' => 'key1.key2']);
536 
537  $this->viewHelperVariableContainer->exists(FormViewHelper::class, 'formObject')
538  ->willReturn(true);
539  $this->viewHelperVariableContainer->get(FormViewHelper::class, 'formObject')
540  ->willReturn(['key1' => ['key2' => 'valueX']]);
541 
542  $actual = $formFieldViewHelper->_call('getPropertyValue');
543  self::assertEquals('valueX', $actual);
544  }
545 }
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\renderHiddenFieldForEmptyValueDoesNotRenderHiddenFieldIfItHasBeenRenderedBefore
‪renderHiddenFieldForEmptyValueDoesNotRenderHiddenFieldIfItHasBeenRenderedBefore()
Definition: AbstractFormFieldViewHelperTest.php:429
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\getNameBuildsNameFromFieldNamePrefixFormObjectNameAndPropertyIfInObjectAccessorMode
‪getNameBuildsNameFromFieldNamePrefixFormObjectNameAndPropertyIfInObjectAccessorMode()
Definition: AbstractFormFieldViewHelperTest.php:97
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\Fixtures\ClassWithTwoGetters
Definition: ClassWithTwoGetters.php:22
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest
Definition: AbstractFormFieldViewHelperTest.php:26
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\getPropertyValueReturnsArrayValueByPropertyPath
‪getPropertyValueReturnsArrayValueByPropertyPath()
Definition: AbstractFormFieldViewHelperTest.php:524
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\FormFieldViewHelperBaseTestcase\injectDependenciesIntoViewHelper
‪injectDependenciesIntoViewHelper(ViewHelperInterface $viewHelper)
Definition: FormFieldViewHelperBaseTestcase.php:42
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\FormFieldViewHelperBaseTestcase
Definition: FormFieldViewHelperBaseTestcase.php:28
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\getNameBuildsNameFromFieldNamePrefixFormObjectNameAndHierarchicalPropertyIfInObjectAccessorMode
‪getNameBuildsNameFromFieldNamePrefixFormObjectNameAndHierarchicalPropertyIfInObjectAccessorMode()
Definition: AbstractFormFieldViewHelperTest.php:130
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\getNameBuildsNameFromFieldNamePrefixAndFieldNameIfNotInObjectAccessorMode
‪getNameBuildsNameFromFieldNamePrefixAndFieldNameIfNotInObjectAccessorMode()
Definition: AbstractFormFieldViewHelperTest.php:192
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\renderHiddenFieldForEmptyValueRemovesEmptySquareBracketsFromHiddenFieldName
‪renderHiddenFieldForEmptyValueRemovesEmptySquareBracketsFromHiddenFieldName()
Definition: AbstractFormFieldViewHelperTest.php:456
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\renderHiddenFieldForEmptyValueAddsHiddenFieldNameToVariableContainerIfItHasBeenRendered
‪renderHiddenFieldForEmptyValueAddsHiddenFieldNameToVariableContainerIfItHasBeenRendered()
Definition: AbstractFormFieldViewHelperTest.php:399
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\getRespectSubmittedDataValueInitiallyReturnsFalse
‪getRespectSubmittedDataValueInitiallyReturnsFalse()
Definition: AbstractFormFieldViewHelperTest.php:30
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\isObjectAccessorModeReturnsTrueIfPropertyIsSetAndFormObjectIsGiven
‪isObjectAccessorModeReturnsTrueIfPropertyIsSetAndFormObjectIsGiven()
Definition: AbstractFormFieldViewHelperTest.php:221
‪TYPO3\CMS\Fluid\ViewHelpers\FormViewHelper
Definition: FormViewHelper.php:61
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\renderHiddenFieldForEmptyValueDoesNotRemoveNonEmptySquareBracketsFromHiddenFieldName
‪renderHiddenFieldForEmptyValueDoesNotRemoveNonEmptySquareBracketsFromHiddenFieldName()
Definition: AbstractFormFieldViewHelperTest.php:490
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\getValueAttributeBuildsValueFromPropertyAndFormObjectIfInObjectAccessorModeAndRespectSubmittedDataValueSetFalse
‪getValueAttributeBuildsValueFromPropertyAndFormObjectIfInObjectAccessorModeAndRespectSubmittedDataValueSetFalse()
Definition: AbstractFormFieldViewHelperTest.php:65
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\addAdditionalIdentityPropertiesIfNeededDoesNotCreateAnythingIfPropertyIsWithoutDot
‪addAdditionalIdentityPropertiesIfNeededDoesNotCreateAnythingIfPropertyIsWithoutDot()
Definition: AbstractFormFieldViewHelperTest.php:245
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form
Definition: AbstractFormFieldViewHelperTest.php:16
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\addAdditionalIdentityPropertiesIfNeededCallsRenderIdentityFieldWithTheRightParameters
‪addAdditionalIdentityPropertiesIfNeededCallsRenderIdentityFieldWithTheRightParameters()
Definition: AbstractFormFieldViewHelperTest.php:266
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper
Definition: AbstractFormFieldViewHelper.php:30
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\getNameBuildsNameFromFieldNamePrefixAndPropertyIfInObjectAccessorModeAndNoFormObjectNameIsSpecified
‪getNameBuildsNameFromFieldNamePrefixAndPropertyIfInObjectAccessorModeAndNoFormObjectNameIsSpecified()
Definition: AbstractFormFieldViewHelperTest.php:161
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\addAdditionalIdentityPropertiesIfNeededCallsRenderIdentityFieldWithTheRightParametersWithMoreHierarchyLevels
‪addAdditionalIdentityPropertiesIfNeededCallsRenderIdentityFieldWithTheRightParametersWithMoreHierarchyLevels()
Definition: AbstractFormFieldViewHelperTest.php:314
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\setRespectSubmittedDataValueToTrue
‪setRespectSubmittedDataValueToTrue()
Definition: AbstractFormFieldViewHelperTest.php:47
‪TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\AbstractFormFieldViewHelperTest\renderHiddenFieldForEmptyValueRendersHiddenFieldIfItHasNotBeenRenderedBefore
‪renderHiddenFieldForEmptyValueRendersHiddenFieldIfItHasNotBeenRenderedBefore()
Definition: AbstractFormFieldViewHelperTest.php:367