‪TYPO3CMS  10.4
TcaInlineIsOnSymmetricSideTest.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
19 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
20 
24 class ‪TcaInlineIsOnSymmetricSideTest extends UnitTestCase
25 {
29  protected ‪$subject;
30 
34  public function ‪setUp(): void
35  {
36  parent::setUp();
37  $this->subject = new ‪TcaInlineIsOnSymmetricSide();
38  }
39 
44  {
45  $input = [
46  'databaseRow' => [
47  'uid' => 5,
48  'theSymmetricField' => [
49  23,
50  ],
51  ],
52  'isInlineChild' => true,
53  'inlineParentUid' => 23,
54  'inlineParentConfig' => [
55  'symmetric_field' => 'theSymmetricField',
56  ],
57  ];
58  $expected = $input;
59  $expected['isOnSymmetricSide'] = true;
60  self::assertEquals($expected, $this->subject->addData($input));
61  }
62 }
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaInlineIsOnSymmetricSideTest\setUp
‪setUp()
Definition: TcaInlineIsOnSymmetricSideTest.php:33
‪TYPO3\CMS\Backend\Form\FormDataProvider\TcaInlineIsOnSymmetricSide
Definition: TcaInlineIsOnSymmetricSide.php:28
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaInlineIsOnSymmetricSideTest
Definition: TcaInlineIsOnSymmetricSideTest.php:25
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaInlineIsOnSymmetricSideTest\$subject
‪TcaInlineIsOnSymmetricSide $subject
Definition: TcaInlineIsOnSymmetricSideTest.php:28
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\TcaInlineIsOnSymmetricSideTest\addDataSetsIsOnSymmetricSideToTrue
‪addDataSetsIsOnSymmetricSideToTrue()
Definition: TcaInlineIsOnSymmetricSideTest.php:42
‪TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider
Definition: DatabaseDefaultLanguagePageRowTest.php:18