‪TYPO3CMS  9.5
FormDefinitionValidationServiceTest.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
24 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
25 
26 class ‪FormDefinitionValidationServiceTest extends UnitTestCase
27 {
28  protected function ‪setUp()
29  {
30  parent::setUp();
31  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = '12345';
32  }
33 
38  {
39  $this->expectException(PropertyException::class);
40  $this->expectExceptionCode(1528588036);
41 
42  $typeConverter = $this->getAccessibleMock(FormDefinitionValidationService::class, ['dummy'], [], '', false);
43 
44  $prototypeName = 'standard';
45  $identifier = 'some-text';
46 
47  $sessionToken = '123';
48 
49  $validationDto = new ‪ValidationDto($prototypeName, 'Text', $identifier);
50 
51  $input = [
52  'label' => 'xxx',
53  '_orig_label' => [
54  'value' => 'aaa',
55  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'label', 'aaa']), $sessionToken),
56  ],
57  ];
58 
59  $typeConverter->_call('validateAllFormElementPropertyValuesByHmac', $input, $sessionToken, $validationDto);
60  }
61 
66  {
67  $this->expectException(PropertyException::class);
68  $this->expectExceptionCode(1528588037);
69 
70  $typeConverter = $this->getAccessibleMock(FormDefinitionValidationService::class, ['dummy'], [], '', false);
71 
72  $prototypeName = 'standard';
73  $identifier = 'some-text';
74 
75  $sessionToken = '123';
76 
77  $validationDto = new ‪ValidationDto($prototypeName, 'Text', $identifier);
78 
79  $input = [
80  'label' => 'xxx',
81  ];
82 
83  $typeConverter->_call('validateAllFormElementPropertyValuesByHmac', $input, $sessionToken, $validationDto);
84  }
85 
90  {
91  $typeConverter = $this->getAccessibleMock(FormDefinitionValidationService::class, ['dummy'], [], '', false);
92 
93  $prototypeName = 'standard';
94  $identifier = 'some-text';
95 
96  $sessionToken = '123';
97 
98  $validationDto = new ‪ValidationDto($prototypeName, 'Text', $identifier);
99 
100  $input = [
101  'label' => 'aaa',
102  '_orig_label' => [
103  'value' => 'aaa',
104  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'label', 'aaa']), $sessionToken),
105  ],
106  ];
107 
108  $failed = false;
109  try {
110  $typeConverter->_call(
111  'validateAllFormElementPropertyValuesByHmac',
112  $input,
113  $sessionToken,
114  $validationDto
115  );
116  } catch (‪PropertyException $e) {
117  $failed = true;
118  }
119  $this->assertFalse($failed);
120  }
121 
126  {
127  $this->expectException(PropertyException::class);
128  $this->expectExceptionCode(1528591586);
129 
130  $typeConverter = $this->getAccessibleMock(FormDefinitionValidationService::class, ['dummy'], [], '', false);
131 
132  $prototypeName = 'standard';
133  $identifier = 'some-text';
134 
135  $sessionToken = '123';
136 
137  $validationDto = new ‪ValidationDto($prototypeName, 'Text', $identifier, null, 'validators');
138 
139  $input = [
140  'identifier' => 'StringLength',
141  '_orig_identifier' => [
142  'value' => 'StringLength',
143  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'validators', 'StringLength', 'identifier', 'StringLength']), $sessionToken),
144  ],
145  'options' => [
146  'test' => 'xxx',
147  '_orig_test' => [
148  'value' => 'aaa',
149  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'validators', 'StringLength', 'options.test', 'aaa']), $sessionToken),
150  ],
151  ],
152  ];
153 
154  $typeConverter->_call(
155  'validateAllPropertyCollectionElementValuesByHmac',
156  $input,
157  $sessionToken,
158  $validationDto
159  );
160  }
161 
166  {
167  $this->expectException(PropertyException::class);
168  $this->expectExceptionCode(1528591585);
169 
170  $typeConverter = $this->getAccessibleMock(FormDefinitionValidationService::class, ['dummy'], [], '', false);
171 
172  $prototypeName = 'standard';
173  $identifier = 'some-text';
174 
175  $sessionToken = '123';
176 
177  $validationDto = new ‪ValidationDto($prototypeName, 'Text', $identifier, null, 'validators');
178 
179  $input = [
180  'identifier' => 'StringLength',
181  '_orig_identifier' => [
182  'value' => 'StringLength',
183  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'validators', 'StringLength', 'identifier', 'StringLength']), $sessionToken),
184  ],
185  'options' => [
186  'test' => 'xxx',
187  ],
188  ];
189 
190  $typeConverter->_call(
191  'validateAllPropertyCollectionElementValuesByHmac',
192  $input,
193  $sessionToken,
194  $validationDto
195  );
196  }
197 
202  {
203  $typeConverter = $this->getAccessibleMock(FormDefinitionValidationService::class, ['dummy'], [], '', false);
204 
205  $prototypeName = 'standard';
206  $identifier = 'some-text';
207 
208  $sessionToken = '123';
209 
210  $validationDto = new ‪ValidationDto($prototypeName, 'Text', $identifier, null, 'validators');
211 
212  $input = [
213  'identifier' => 'StringLength',
214  '_orig_identifier' => [
215  'value' => 'StringLength',
216  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'validators', 'StringLength', 'identifier', 'StringLength']), $sessionToken),
217  ],
218  'options' => [
219  'test' => 'aaa',
220  '_orig_test' => [
221  'value' => 'aaa',
222  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'validators', 'StringLength', 'options.test', 'aaa']), $sessionToken),
223  ],
224  ],
225  ];
226 
227  $failed = false;
228  try {
229  $typeConverter->_call(
230  'validateAllPropertyCollectionElementValuesByHmac',
231  $input,
232  $sessionToken,
233  $validationDto
234  );
235  } catch (‪PropertyException $e) {
236  $failed = true;
237  }
238  $this->assertFalse($failed);
239  }
240 
251  array $mockConfiguration,
252  array $formElement,
253  string $sessionToken,
254  int $exceptionCode,
255  ‪ValidationDto $validationDto
256  ) {
257  $typeConverter = $this->getAccessibleMock(
258  FormDefinitionValidationService::class,
259  ['getConfigurationService'],
260  [],
261  '',
262  false
263  );
264 
265  $configurationService = $this->createMock(ConfigurationService::class);
266  $configurationService->expects($this->any())
267  ->method('isFormElementPropertyDefinedInFormEditorSetup')
268  ->willReturn($mockConfiguration['isFormElementPropertyDefinedInFormEditorSetup']);
269  $configurationService->expects($this->any())->method(
270  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup'
271  )->willReturn($mockConfiguration['isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup']);
272  $configurationService->expects($this->any())
273  ->method('getFormElementPredefinedDefaultValueFromFormEditorSetup')
274  ->willReturn($mockConfiguration['getFormElementPredefinedDefaultValueFromFormEditorSetup']);
275  $typeConverter->expects($this->any())->method('getConfigurationService')->willReturn($configurationService);
276  $formDefinitionValidationService = $this->getAccessibleMock(FormDefinitionValidationService::class, ['getConfigurationService']);
277  $formDefinitionValidationService->expects($this->any())->method('getConfigurationService')->willReturn($configurationService);
278  GeneralUtility::setSingletonInstance(FormDefinitionValidationService::class, $formDefinitionValidationService);
279  $objectManager = $this->createMock(ObjectManager::class);
280  $objectManager->expects($this->once())->method('get')->with(ConfigurationService::class)->willReturn($configurationService);
281  GeneralUtility::setSingletonInstance(ObjectManager::class, $objectManager);
282 
283  $returnedExceptionCode = -1;
284  try {
285  $typeConverter->_call(
286  'validateAllPropertyValuesFromCreatableFormElement',
287  $formElement,
288  $sessionToken,
289  $validationDto
290  );
291  } catch (‪PropertyException $e) {
292  $returnedExceptionCode = $e->getCode();
293  }
294  $this->assertEquals($returnedExceptionCode, $exceptionCode);
295  }
296 
307  array $mockConfiguration,
308  array $formElement,
309  string $sessionToken,
310  int $exceptionCode,
311  ‪ValidationDto $validationDto
312  ) {
313  $typeConverter = $this->getAccessibleMock(
314  FormDefinitionValidationService::class,
315  ['getConfigurationService'],
316  [],
317  '',
318  false
319  );
320 
321  $configurationService = $this->createMock(ConfigurationService::class);
322  $configurationService->expects($this->any())
323  ->method('isPropertyCollectionPropertyDefinedInFormEditorSetup')
324  ->willReturn($mockConfiguration['isPropertyCollectionPropertyDefinedInFormEditorSetup']);
325  $configurationService->expects($this->any())->method(
326  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup'
327  )->willReturn($mockConfiguration['isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup']);
328  $configurationService->expects($this->any())->method(
329  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup'
330  )->willReturn($mockConfiguration['getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup']);
331  $typeConverter->expects($this->any())->method('getConfigurationService')->willReturn($configurationService);
332  $formDefinitionValidationService = $this->getAccessibleMock(FormDefinitionValidationService::class, ['getConfigurationService']);
333  $formDefinitionValidationService->expects($this->any())->method('getConfigurationService')->willReturn($configurationService);
334  GeneralUtility::setSingletonInstance(FormDefinitionValidationService::class, $formDefinitionValidationService);
335  $objectManager = $this->createMock(ObjectManager::class);
336  $objectManager->expects($this->once())->method('get')->with(ConfigurationService::class)->willReturn($configurationService);
337  GeneralUtility::setSingletonInstance(ObjectManager::class, $objectManager);
338 
339  $returnedExceptionCode = -1;
340  try {
341  $typeConverter->_call(
342  'validateAllPropertyValuesFromCreatablePropertyCollectionElement',
343  $formElement,
344  $sessionToken,
345  $validationDto
346  );
347  } catch (‪PropertyException $e) {
348  $returnedExceptionCode = $e->getCode();
349  }
350  $this->assertEquals($returnedExceptionCode, $exceptionCode);
351  }
352 
357  {
358  $encryptionKeyBackup = ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
359  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = '12345';
360 
361  $sessionToken = '54321';
362  $identifier = 'text-1';
363 
364  $validationDto = new ‪ValidationDto('standard', 'Text', $identifier);
365  $formElement = [
366  'test' => 'xxx',
367  '_orig_test' => [
368  'value' => 'xxx',
369  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'test', 'xxx']), $sessionToken),
370  ],
371  ];
372 
373  $formElementWithoutHmac = [
374  'test' => 'xxx',
375  ];
376 
377  $invalidFormElement = [
378  'test' => 'xxx1',
379  '_orig_test' => [
380  'value' => 'xxx',
381  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'test', 'xxx']), $sessionToken),
382  ],
383  ];
384 
385  // be aware that backup globals does not impact globals used in data providers as these are called before the setUp/tearDown is done
386  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = $encryptionKeyBackup;
387 
388  return [
389  [
390  [
391  'isFormElementPropertyDefinedInFormEditorSetup' => true,
392  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
393  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => '',
394  ],
395  $formElement,
396  $sessionToken,
397  -1,
398  $validationDto
399  ],
400  [
401  [
402  'isFormElementPropertyDefinedInFormEditorSetup' => false,
403  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
404  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => 'default',
405  ],
406  $formElement,
407  $sessionToken,
408  -1,
409  $validationDto
410  ],
411  [
412  [
413  'isFormElementPropertyDefinedInFormEditorSetup' => false,
414  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
415  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => 'default',
416  ],
417  ['test' => 'xxx'],
418  $sessionToken,
419  1528588037,
420  $validationDto
421  ],
422  [
423  [
424  'isFormElementPropertyDefinedInFormEditorSetup' => false,
425  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
426  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => 'default',
427  ],
428  ['test' => 'xxx', '_orig_test' => []],
429  $sessionToken,
430  1528538222,
431  $validationDto
432  ],
433  [
434  [
435  'isFormElementPropertyDefinedInFormEditorSetup' => false,
436  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
437  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => 'default',
438  ],
439  ['test' => 'xxx', '_orig_test' => ['hmac' => '4242']],
440  $sessionToken,
441  1528538252,
442  $validationDto
443  ],
444  [
445  [
446  'isFormElementPropertyDefinedInFormEditorSetup' => false,
447  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
448  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => 'default',
449  ],
450  $invalidFormElement,
451  $sessionToken,
452  1528588036,
453  $validationDto
454  ],
455  [
456  [
457  'isFormElementPropertyDefinedInFormEditorSetup' => false,
458  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => true,
459  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => 'xxx',
460  ],
461  $formElement,
462  $sessionToken,
463  -1,
464  $validationDto
465  ],
466  [
467  [
468  'isFormElementPropertyDefinedInFormEditorSetup' => false,
469  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => true,
470  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => 'default',
471  ],
472  $formElement,
473  $sessionToken,
474  -1,
475  $validationDto
476  ],
477  [
478  [
479  'isFormElementPropertyDefinedInFormEditorSetup' => false,
480  'isFormElementPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => true,
481  'getFormElementPredefinedDefaultValueFromFormEditorSetup' => 'default',
482  ],
483  $formElementWithoutHmac,
484  $sessionToken,
485  1528588035,
486  $validationDto
487  ],
488  ];
489  }
490 
495  {
496  $encryptionKeyBackup = ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
497  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = '12345';
498 
499  $sessionToken = '54321';
500  $identifier = 'text-1';
501 
502  $validationDto = new ‪ValidationDto('standard', 'Text', $identifier, null, 'validators', 'StringLength');
503  $formElement = [
504  'test' => 'xxx',
505  '_orig_test' => [
506  'value' => 'xxx',
507  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'validators', 'StringLength', 'test', 'xxx']), $sessionToken),
508  ],
509  ];
510 
511  $formElementWithoutHmac = [
512  'test' => 'xxx',
513  ];
514 
515  $invalidFormElement = [
516  'test' => 'xxx1',
517  '_orig_test' => [
518  'value' => 'xxx',
519  'hmac' => GeneralUtility::hmac(serialize([$identifier, 'validators', 'StringLength', 'test', 'xxx']), $sessionToken),
520  ],
521  ];
522 
523  // be aware that backup globals does not impact globals used in data providers as these are called before the setUp/tearDown is done
524  ‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'] = $encryptionKeyBackup;
525 
526  return [
527  [
528  [
529  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => true,
530  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
531  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'default',
532  ],
533  $formElement,
534  $sessionToken,
535  -1,
536  $validationDto
537  ],
538  [
539  [
540  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => false,
541  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
542  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'default',
543  ],
544  $formElement,
545  $sessionToken,
546  -1,
547  $validationDto
548  ],
549  [
550  [
551  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => false,
552  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
553  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'default',
554  ],
555  ['test' => 'xxx'],
556  $sessionToken,
557  1528591585,
558  $validationDto
559  ],
560  [
561  [
562  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => false,
563  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
564  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'default',
565  ],
566  ['test' => 'xxx', '_orig_test' => []],
567  $sessionToken,
568  1528538222,
569  $validationDto
570  ],
571  [
572  [
573  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => false,
574  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
575  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'default',
576  ],
577  ['test' => 'xxx', '_orig_test' => ['hmac' => '4242']],
578  $sessionToken,
579  1528538252,
580  $validationDto
581  ],
582  [
583  [
584  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => false,
585  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => false,
586  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'default',
587  ],
588  $invalidFormElement,
589  $sessionToken,
590  1528591586,
591  $validationDto
592  ],
593 
594  [
595  [
596  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => false,
597  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => true,
598  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'xxx',
599  ],
600  $formElement,
601  $sessionToken,
602  -1,
603  $validationDto
604  ],
605  [
606  [
607  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => false,
608  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => true,
609  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'default',
610  ],
611  $formElement,
612  $sessionToken,
613  -1,
614  $validationDto
615  ],
616  [
617  [
618  'isPropertyCollectionPropertyDefinedInFormEditorSetup' => false,
619  'isPropertyCollectionPropertyDefinedInPredefinedDefaultsInFormEditorSetup' => true,
620  'getPropertyCollectionPredefinedDefaultValueFromFormEditorSetup' => 'default',
621  ],
622  $formElementWithoutHmac,
623  $sessionToken,
624  1528591502,
625  $validationDto
626  ],
627  ];
628  }
629 
630  public function ‪tearDown()
631  {
632  GeneralUtility::resetSingletonInstances([]);
633  parent::tearDown();
634  }
635 }
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllPropertyValuesFromCreatableFormElement
‪validateAllPropertyValuesFromCreatableFormElement(array $mockConfiguration, array $formElement, string $sessionToken, int $exceptionCode, ValidationDto $validationDto)
Definition: FormDefinitionValidationServiceTest.php:250
‪TYPO3\CMS\Extbase\Property\Exception
Definition: DuplicateObjectException.php:2
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllFormElementPropertyValuesByHmacThrowsExceptionIfHmacDoesNotExists
‪validateAllFormElementPropertyValuesByHmacThrowsExceptionIfHmacDoesNotExists()
Definition: FormDefinitionValidationServiceTest.php:65
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllPropertyCollectionElementValuesByHmacThrowsExceptionIfHmacIsInvalid
‪validateAllPropertyCollectionElementValuesByHmacThrowsExceptionIfHmacIsInvalid()
Definition: FormDefinitionValidationServiceTest.php:125
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllFormElementPropertyValuesByHmacThrowsExceptionIfHmacIsInvalid
‪validateAllFormElementPropertyValuesByHmacThrowsExceptionIfHmacIsInvalid()
Definition: FormDefinitionValidationServiceTest.php:37
‪TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Validators\ValidationDto
Definition: ValidationDto.php:23
‪TYPO3\CMS\Form\Domain\Configuration\FormDefinitionValidationService
Definition: FormDefinitionValidationService.php:34
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest
Definition: FormDefinitionValidationServiceTest.php:27
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration
Definition: ConfigurationServiceTest.php:3
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllPropertyValuesFromCreatablePropertyCollectionElement
‪validateAllPropertyValuesFromCreatablePropertyCollectionElement(array $mockConfiguration, array $formElement, string $sessionToken, int $exceptionCode, ValidationDto $validationDto)
Definition: FormDefinitionValidationServiceTest.php:306
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\tearDown
‪tearDown()
Definition: FormDefinitionValidationServiceTest.php:630
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllFormElementPropertyValuesByHmacThrowsNoExceptionIfHmacIsValid
‪validateAllFormElementPropertyValuesByHmacThrowsNoExceptionIfHmacIsValid()
Definition: FormDefinitionValidationServiceTest.php:89
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\setUp
‪setUp()
Definition: FormDefinitionValidationServiceTest.php:28
‪TYPO3\CMS\Form\Domain\Configuration\ConfigurationService
Definition: ConfigurationService.php:49
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllPropertyCollectionElementValuesByHmacThrowsExceptionIfHmacDoesNotExists
‪validateAllPropertyCollectionElementValuesByHmacThrowsExceptionIfHmacDoesNotExists()
Definition: FormDefinitionValidationServiceTest.php:165
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllPropertyValuesFromCreatablePropertyCollectionElementDataProvider
‪array validateAllPropertyValuesFromCreatablePropertyCollectionElementDataProvider()
Definition: FormDefinitionValidationServiceTest.php:494
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:45
‪TYPO3\CMS\Form\Domain\Configuration\Exception\PropertyException
Definition: PropertyException.php:24
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllPropertyValuesFromCreatableFormElementDataProvider
‪array validateAllPropertyValuesFromCreatableFormElementDataProvider()
Definition: FormDefinitionValidationServiceTest.php:356
‪TYPO3\CMS\Extbase\Object\ObjectManager
Definition: ObjectManager.php:25
‪TYPO3\CMS\Form\Tests\Unit\Domain\Configuration\FormDefinitionValidationServiceTest\validateAllPropertyCollectionElementValuesByHmacThrowsNoExceptionIfHmacIsValid
‪validateAllPropertyCollectionElementValuesByHmacThrowsNoExceptionIfHmacIsValid()
Definition: FormDefinitionValidationServiceTest.php:201