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