‪TYPO3CMS  11.5
ImplementationClassNameTest.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 
23 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
24 
25 class ‪ImplementationClassNameTest extends FunctionalTestCase
26 {
28  'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/a',
29  'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b',
30  ];
31 
32  public function ‪setUp(): void
33  {
34  parent::setUp();
35  $this->importCSVDataSet(GeneralUtility::getFileAbsFileName(
36  'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b/tx_a_domain_model_a.csv'
37  ));
38  }
39 
44  {
45  $aRepository = $this->get(ARepository::class);
46  $a1 = $aRepository->findByUid(1);
47  $a2 = $aRepository->findByUid(1);
48 
49  self::assertSame($a1, $a2);
50  }
51 
56  {
57  $bRepository = $this->get(BRepository::class);
58  $b1 = $bRepository->findByUid(1);
59  $b2 = $bRepository->findByUid(1);
60 
61  self::assertSame($b1, $b2);
62  }
63 }
‪TYPO3\CMS\Extbase\Tests\Functional\Persistence\ImplementationClassNameTest\setUp
‪setUp()
Definition: ImplementationClassNameTest.php:32
‪ExtbaseTeam\A\Domain\Repository\ARepository
Definition: ARepository.php:22
‪TYPO3\CMS\Extbase\Tests\Functional\Persistence\ImplementationClassNameTest\bRepositoryObjectsAreTakenFromSession
‪bRepositoryObjectsAreTakenFromSession()
Definition: ImplementationClassNameTest.php:55
‪TYPO3\CMS\Extbase\Tests\Functional\Persistence
Definition: AddTest.php:18
‪TYPO3\CMS\Extbase\Tests\Functional\Persistence\ImplementationClassNameTest
Definition: ImplementationClassNameTest.php:26
‪TYPO3\CMS\Extbase\Tests\Functional\Persistence\ImplementationClassNameTest\aRepositoryObjectsAreTakenFromSession
‪aRepositoryObjectsAreTakenFromSession()
Definition: ImplementationClassNameTest.php:43
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:50
‪TYPO3\CMS\Extbase\Tests\Functional\Persistence\ImplementationClassNameTest\$testExtensionsToLoad
‪$testExtensionsToLoad
Definition: ImplementationClassNameTest.php:27
‪ExtbaseTeam\B\Domain\Repository\BRepository
Definition: BRepository.php:22