TYPO3 CMS  TYPO3_8-7
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  $GLOBALS['TCA']['pages_language_overlay']['columns']['keywords']['l10n_mode'] = 'exclude';
35  $map = $this->actionService->localizeRecord('pages', self::PAGE_DATAHANDLER, 1);
36  $newPageId = $map['pages_language_overlay'][self::PAGE_DATAHANDLER];
37  $originalLanguageRecord = BackendUtility::getRecord('pages', self::PAGE_DATAHANDLER);
38  $translatedRecord = BackendUtility::getRecord('pages_language_overlay', $newPageId);
39 
40  $this->assertEquals('datahandler', $originalLanguageRecord['keywords']);
41  $this->assertEquals('datahandler', $translatedRecord['keywords']);
42  }
43 }
static getRecord($table, $uid, $fields=' *', $where='', $useDeleteClause=true)
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']