‪TYPO3CMS  ‪main
AbstractActionTestCase.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 
21 
23 {
24  protected const ‪VALUE_PageId = 89;
25  protected const ‪VALUE_LanguageId = 1;
26  protected const ‪VALUE_ElementIdFirst = 1;
27  protected const ‪VALUE_ElementIdSecond = 2;
28  protected const ‪VALUE_ElementIdThird = 3;
29  protected const ‪VALUE_ForeignIdFirst = 1;
30  protected const ‪VALUE_ForeignIdSecond = 2;
31  protected const ‪VALUE_ForeignIdThird = 3;
32 
33  protected const ‪TABLE_Element = 'tx_testselectflexmm_local';
34  protected const ‪FIELD_Flex = 'flex_1';
35 
36  protected const ‪SCENARIO_DataSet = __DIR__ . '/DataSet/ImportDefault.csv';
37 
38  protected array ‪$testExtensionsToLoad = [
39  'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_select_flex_mm',
40  ];
41 
42  protected function ‪setUp(): void
43  {
44  parent::setUp();
45  $this->importCSVDataSet(static::SCENARIO_DataSet);
46  }
47 
48  public function ‪addElementRelation()
49  {
50  $this->actionService->modifyRecord(
51  self::TABLE_Element,
52  self::VALUE_ElementIdSecond,
53  [
54  'flex_1' => [
55  'data' => [
56  'sMultiplesidebyside' => [
57  'lDEF' => [
58  'select_multiplesidebyside_1' => [
59  'vDEF' => implode(',', [self::VALUE_ForeignIdSecond, self::VALUE_ElementIdFirst]),
60  ],
61  ],
62  ],
63  ],
64  ],
65  ],
66  );
67  }
68 }
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\FIELD_Flex
‪const FIELD_Flex
Definition: AbstractActionTestCase.php:34
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\VALUE_ForeignIdThird
‪const VALUE_ForeignIdThird
Definition: AbstractActionTestCase.php:31
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\addElementRelation
‪addElementRelation()
Definition: AbstractActionTestCase.php:48
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\VALUE_ForeignIdSecond
‪const VALUE_ForeignIdSecond
Definition: AbstractActionTestCase.php:30
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\VALUE_ElementIdThird
‪const VALUE_ElementIdThird
Definition: AbstractActionTestCase.php:28
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\AbstractDataHandlerActionTestCase
Definition: AbstractDataHandlerActionTestCase.php:37
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase
Definition: AbstractActionTestCase.php:23
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\VALUE_ElementIdSecond
‪const VALUE_ElementIdSecond
Definition: AbstractActionTestCase.php:27
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\setUp
‪setUp()
Definition: AbstractActionTestCase.php:42
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\VALUE_LanguageId
‪const VALUE_LanguageId
Definition: AbstractActionTestCase.php:25
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\TABLE_Element
‪const TABLE_Element
Definition: AbstractActionTestCase.php:33
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex
Definition: AbstractActionTestCase.php:18
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\$testExtensionsToLoad
‪array $testExtensionsToLoad
Definition: AbstractActionTestCase.php:38
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\VALUE_ForeignIdFirst
‪const VALUE_ForeignIdFirst
Definition: AbstractActionTestCase.php:29
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\VALUE_ElementIdFirst
‪const VALUE_ElementIdFirst
Definition: AbstractActionTestCase.php:26
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\SCENARIO_DataSet
‪const SCENARIO_DataSet
Definition: AbstractActionTestCase.php:36
‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\SelectFlex\AbstractActionTestCase\VALUE_PageId
‪const VALUE_PageId
Definition: AbstractActionTestCase.php:24