‪TYPO3CMS  9.5
TestController.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 
23 
28 {
29  public function ‪initializeFooAction()
30  {
32  $propertMappingConfiguration = $this->arguments['fooParam']->getPropertyMappingConfiguration();
33  $propertMappingConfiguration->allowAllProperties();
34  $propertMappingConfiguration->setTypeConverterOption(
35  PersistentObjectConverter::class,
37  true
38  );
39  }
40 
45  public function ‪fooAction(‪Model $fooParam)
46  {
47  // return string so we don't need to mock a view
48  return '';
49  }
50 
56  public function ‪barAction(string $barParam)
57  {
58  // return string so we don't need to mock a view
59  return '';
60  }
61 
67  public function ‪bazAction(array $bazParam)
68  {
69  // return string so we don't need to mock a view
70  return '';
71  }
72 }
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\initializeFooAction
‪initializeFooAction()
Definition: TestController.php:29
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController
Definition: TestController.php:28
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller
Definition: ArgumentTestController.php:3
‪TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter\CONFIGURATION_CREATION_ALLOWED
‪const CONFIGURATION_CREATION_ALLOWED
Definition: PersistentObjectConverter.php:39
‪TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter
Definition: PersistentObjectConverter.php:30
‪TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfiguration
Definition: MvcPropertyMappingConfiguration.php:22
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\barAction
‪string barAction(string $barParam)
Definition: TestController.php:56
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Domain\Model\Model
Definition: Model.php:24
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\fooAction
‪string fooAction(Model $fooParam)
Definition: TestController.php:45
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Definition: ActionController.php:31
‪TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Controller\TestController\bazAction
‪string bazAction(array $bazParam)
Definition: TestController.php:67