Review main Merged

96927[TASK] Test reading relations with Record API and Extbase

Alexander Schnitzler CR +2 V +2 Expert +1124 −0 updated 10/20/26, 16:43

Commit message

Add paired tests that read relation fields of a post, a content
element and a category relation once with the Record API
(RecordFactory) and once with Extbase, and assert the same
readable values:

* select and group fields that store a list of uids, inline
  children without foreign field, two inline fields that share
  one child table, to-one relations to a deleted or a missing
  record (RelationReadTest)
* file references of a translated content element with overlays
  on and mixed (TranslatedRelationReadTest)
* categories of a post, also of a translated post
  (CategoryReadTest)

The blog_example fixture extension gets the model
PostWithRelations with four additional relation fields on the post
table, and two helper columns on the comment table.

Extbase differs from core in three scenarios, these tests are
skipped:

* A select field without relation table returns the related
  records ordered by uid, not in the stored order of the field.
* A group field without relation table returns the related
  records ordered by uid, not in the stored order of the field.
* Inline children without foreign field are returned ordered by
  uid, not in the stored order of the field.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • Oliver Klee +1
    • core-ci +1 CI

Issues 2

Files 11

Review log 67

  1. Alexander Schnitzler uploaded patch set 1 10/20/26, 14:57

  2. core-ci voted on patch set 1 V +1 10/20/26, 15:20 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111860

  3. Alexander Schnitzler marked it ready for review 10/20/26, 15:21

  4. Alexander Schnitzler wrote 10/20/26, 15:22

    Topic set to extbase
  5. Oliver Klee voted on patch set 1 V +1 10/20/26, 16:10

  6. Benni Mack voted on patch set 1 CR +2 V +2 10/20/26, 16:43

  7. Benni Mack merged patch set 2 10/20/26, 16:43