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.

Comments

miksha created an issue. See original summary.

miksha’s picture

StatusFileSize
new3.33 KB
miksha’s picture

  • dagmar committed ce8218ca on 1.0.x authored by miksha
    Issue #3376770 by miksha: Content moderation trait bad arguments types
    
dagmar’s picture

Status: Active » Fixed

Thanks!. Fixed in release 1.0.2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.