‪TYPO3CMS  9.5
GetUniqueTranslationTest.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
3 
5 
8 
10 {
14  const ‪PAGE_DATAHANDLER = 88;
15 
19  protected ‪$scenarioDataSetDirectory = 'typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/DataSet/';
20 
21  protected function ‪setUp()
22  {
23  parent::setUp();
24  $this->‪importScenarioDataSet('LiveDefaultPages');
25  $this->‪importScenarioDataSet('LiveDefaultElements');
26  $this->backendUser->workspace = 0;
27  }
28 
33  {
34  $map = $this->actionService->localizeRecord('pages', self::PAGE_DATAHANDLER, 1);
35  $newPageId = $map['pages'][‪self::PAGE_DATAHANDLER];
36  $originalLanguageRecord = ‪BackendUtility::getRecord('pages', self::PAGE_DATAHANDLER);
37  $translatedRecord = ‪BackendUtility::getRecord('pages', $newPageId);
38 
39  $this->assertEquals('datahandler', $originalLanguageRecord['alias']);
40  $this->assertEquals('datahandler', $translatedRecord['alias']);
41  }
42 }
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler
Definition: DefaultValuesTest.php:17
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\GetUniqueTranslationTest\$scenarioDataSetDirectory
‪string $scenarioDataSetDirectory
Definition: GetUniqueTranslationTest.php:18
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\GetUniqueTranslationTest\setUp
‪setUp()
Definition: GetUniqueTranslationTest.php:20
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
Definition: AbstractDataHandlerActionTestCase.php:33
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\GetUniqueTranslationTest\PAGE_DATAHANDLER
‪const PAGE_DATAHANDLER
Definition: GetUniqueTranslationTest.php:14
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\GetUniqueTranslationTest
Definition: GetUniqueTranslationTest.php:10
‪TYPO3\CMS\Backend\Utility\BackendUtility
Definition: BackendUtility.php:72
‪TYPO3\CMS\Backend\Utility\BackendUtility\getRecord
‪static array null getRecord($table, $uid, $fields=' *', $where='', $useDeleteClause=true)
Definition: BackendUtility.php:130
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\GetUniqueTranslationTest\valueOfUniqueFieldExcludedInTranslationIsUntouchedInTranslation
‪valueOfUniqueFieldExcludedInTranslationIsUntouchedInTranslation()
Definition: GetUniqueTranslationTest.php:31
‪TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase\importScenarioDataSet
‪importScenarioDataSet($dataSetName)
Definition: AbstractDataHandlerActionTestCase.php:117