Review 11.5 Merged

73214[TASK] Avoid state and undefined properties in tests

Christian Kuhn CR +2 V +2 Easy +12 −33 updated 01/30/22, 00:06

Commit message

There is often no point in having test class state
which may lead to undefined class properties and
more complex test setups.

The patch simplifies a test to show this is more
easy to grasp and solve a phpstan error along the way.

> Build/Scripts/runTests.sh -s phpstanGenerateBaseline

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
    • Stefan Bürk +1
  • Verified V +2 Done
    • Christian Kuhn +2
    • Stefan Bürk +1
    • core-ci +1 CI

Issues 1

Files 2

Review log 45

  1. Christian Kuhn uploaded patch set 1 01/29/22, 23:36

  2. core-ci voted on patch set 1 V +1 01/29/22, 23:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/22696

  3. Stefan Bürk voted on patch set 1 V +1 CR +1 01/30/22, 00:06

  4. Christian Kuhn voted on patch set 1 V +2 CR +2 01/30/22, 00:06

  5. Christian Kuhn merged patch set 2 01/30/22, 00:06