‪TYPO3CMS  10.4
TestController.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 
30 {
31  public function ‪initializeFooAction()
32  {
34  $propertyMappingConfiguration = $this->arguments['fooParam']->getPropertyMappingConfiguration();
35  $propertyMappingConfiguration->allowAllProperties();
36  $propertyMappingConfiguration->setTypeConverterOption(
37  PersistentObjectConverter::class,
39  true
40  );
41  }
42 
47  public function ‪fooAction(‪Model $fooParam)
48  {
49  // return string so we don't need to mock a view
50  return '';
51  }
52 
58  public function ‪barAction(string $barParam)
59  {
60  // return string so we don't need to mock a view
61  return '';
62  }
63 
69  public function ‪bazAction(array $bazParam)
70  {
71  // return string so we don't need to mock a view
72  return '';
73  }
74 
75  public function ‪quxAction()
76  {
77  return '';
78  }
79 }
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\initializeFooAction
‪initializeFooAction()
Definition: TestController.php:31
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:18
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController
Definition: TestController.php:30
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller
Definition: ArgumentTestController.php:18
‪TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter\CONFIGURATION_CREATION_ALLOWED
‪const CONFIGURATION_CREATION_ALLOWED
Definition: PersistentObjectConverter.php:52
‪TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter
Definition: PersistentObjectConverter.php:43
‪TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfiguration
Definition: MvcPropertyMappingConfiguration.php:26
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\barAction
‪string barAction(string $barParam)
Definition: TestController.php:58
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Domain\Model\Model
Definition: Model.php:26
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\fooAction
‪string fooAction(Model $fooParam)
Definition: TestController.php:47
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Definition: ActionController.php:55
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\bazAction
‪string bazAction(array $bazParam)
Definition: TestController.php:69
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\quxAction
‪quxAction()
Definition: TestController.php:75