Content moderation trait bad arguments types

Created on 25 July 2023, over 1 year ago

Problem/Motivation

Wanted to use this ContentModerationTrait but encountered few issues.

Steps to reproduce

Calling assertModerationEnabledForEntityType() reports error on argument type mismatch. Also there is an undefined variable "#workflow_name" in assertWorkflowForEntityType().

Proposed resolution

I attach a patch that fixes few issues and also adds another function to test transition in states that shouldn't exist.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇸Serbia miksha

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

Comments & Activities

Production build 0.71.5 2024