Add return types to ContentModerationTestTrait

Created on 18 August 2025, 5 days ago

Problem/Motivation

Child issue of 📌 Determine if there are other TestTraits we can add return types to. Active

There was confusion and discussion in 🐛 Using partially synchronized image fields causes validation errors and php warnings Needs work about whether to add to the baseline or to fix the trait. Let's fix it here so it doesn't come up again.

Steps to reproduce

Proposed resolution

  • Add void return to \Drupal\Tests\content_moderation\Traits\ContentModerationTestTrait::createEditorialWorkflow
  • Add void return to \Drupal\Tests\content_moderation\Traits\ContentModerationTestTrait::addEntityTypeAndBundleToWorkflow
  • Add void return to \Drupal\Tests\content_moderation\Kernel\WorkspacesContentModerationStateTest::createEditorialWorkflow
  • Update baseline

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

content_moderation.module

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024