Skip to content

Commit f992458

Browse files
[Task] add field sys_language_uid in tests
1 parent 80f3885 commit f992458

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Tests/Functional/ApiCompatibilityTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,12 @@ public function shortcutPreviewRendererApiIsCompatible(): void
306306

307307
// Test that RecordFactory can create records
308308
$recordFactory = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Domain\RecordFactory::class);
309-
$testData = ['uid' => 1, 'pid' => 1, 'CType' => 'shortcut'];
309+
$testData = [
310+
'uid' => 1,
311+
'pid' => 1,
312+
'CType' => 'shortcut',
313+
'sys_language_uid' => 0,
314+
];
310315
$record = $recordFactory->createFromDatabaseRow('tt_content', $testData);
311316

312317
self::assertInstanceOf(\TYPO3\CMS\Core\Domain\RecordInterface::class, $record);

Tests/Functional/ShortcutPreviewRendererCompatibilityTest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function rendererHandlesVersionSpecificRecordMethods(): void
123123
'uid' => 1,
124124
'pid' => 1,
125125
'CType' => 'shortcut',
126+
'sys_language_uid' => 0,
126127
'header' => 'Test Shortcut',
127128
'records' => '2',
128129
];
@@ -168,6 +169,7 @@ public function getDataRowMethodHandlesVersionDifferences(): void
168169
'uid' => 1,
169170
'pid' => 1,
170171
'CType' => 'shortcut',
172+
'sys_language_uid' => 0,
171173
'header' => 'Test Record',
172174
];
173175

@@ -191,6 +193,7 @@ public function getDataRowMethodHandlesVersionDifferences(): void
191193
'uid' => 1,
192194
'pid' => 1,
193195
'CType' => 'shortcut',
196+
'sys_language_uid' => 0,
194197
'header' => 'Test Record',
195198
];
196199

@@ -231,6 +234,7 @@ public function getContentRecordObjMethodWorksInV14(): void
231234
'uid' => 1,
232235
'pid' => 1,
233236
'CType' => 'text',
237+
'sys_language_uid' => 0,
234238
'header' => 'Test Content',
235239
];
236240

@@ -261,6 +265,7 @@ public function rendererCanHandleGridColumnItemsAcrossVersions(): void
261265
'uid' => 2,
262266
'pid' => 1,
263267
'CType' => 'shortcut',
268+
'sys_language_uid' => 0,
264269
'header' => 'Reference Element',
265270
'records' => '1',
266271
];
@@ -313,7 +318,13 @@ public function rendererHandlesRecordFactoryAvailability(): void
313318
self::assertInstanceOf(RecordFactory::class, $recordFactory);
314319

315320
// Test that it can create records for tt_content
316-
$testData = ['uid' => 1, 'pid' => 1, 'CType' => 'text'];
321+
$testData = [
322+
'uid' => 1,
323+
'pid' => 1,
324+
'CType' => 'text'
325+
'sys_language_uid' => 0,
326+
327+
];
317328
$record = $recordFactory->createFromDatabaseRow('tt_content', $testData);
318329

319330
self::assertInstanceOf(RecordInterface::class, $record);

0 commit comments

Comments
 (0)