Problem/Motivation

ModerationDashboardTest fails since it's tries to test with Workbrench Moderation module, but it's isn't required neither as hard nor test (dev) dependency.
See https://www.drupal.org/pift-ci-job/1058189

Proposed resolution

  • Convert test to use Content Moderation module provided by Drupal core.
  • Add Workbrench moderation as test dependency.
  • Provide a legacy test for the case if Workbrench Moderation is used.

Remaining tasks

Provide a patch

User interface changes

Nothing.

API changes

Nothing.

Data model changes

Nothing.

Comments

huzooka created an issue. See original summary.

huzooka’s picture

Status: Active » Needs review
StatusFileSize
new7.63 KB

Let's see what happens.

huzooka’s picture

Invalid chars in patch #2

Status: Needs review » Needs work

The last submitted patch, 2: moderation_dashboard-fix_test-2998136-2.patch, failed testing. View results

huzooka’s picture

Status: Needs work » Needs review
StatusFileSize
new7.34 KB

Let's try it again.

huzooka’s picture

@samuel.mortenson, could you please review these changes, especially the newly added composer.json?

huzooka’s picture

Assigned: Unassigned » huzooka
Category: Bug report » Task
Status: Needs review » Needs work
huzooka’s picture

Assigned: huzooka » Unassigned
Status: Needs work » Needs review
StatusFileSize
new9.55 KB

Added submodule dependencies to the new composer.json in root.

samuel.mortenson’s picture

StatusFileSize
new2.13 KB

Thanks for working on this. I've fixed the coding standards in a commit because they aren't causing tests to fail, and am uploading a patch that minimally fixes tests. We can't add new composer dependencies on moderation_note or scheduled_updates as they are not dependencies of the base module - doing this would download two new modules for all users. I've added workbench moderation as a test dependency which should fix tests.

If we want to officially drop Workbench Moderation support, or add new test coverage, we should do that in a new issue.

Status: Needs review » Needs work

The last submitted patch, 9: 2998136-9.patch, failed testing. View results

samuel.mortenson’s picture

Status: Needs work » Fixed

Quirk with the test bot - new test_dependencies are only processed when in a branch/tag. Tests passing now.

Status: Fixed » Closed (fixed)

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