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