Problem/Motivation

PHPUnit tests in Scheduler 2.x and 8.x-1.x fail in Drupal 11.1.0 which was released this week. The tests pass at 11.0.9
The PHP version has changed but only from 8.3.14 to 8.3.15
The PHPUnit version has not changed, still PHPUnit 10.5.39
Lots of symfony components have moved from v7.1 to v7.2

The failures are in

Scheduler Workbench Moderation (Drupal\Tests\scheduler\Functional\SchedulerWorkbenchModeration)
     ✘ Workbench moderation only
     ✘ Workbench moderation with workbench moderation actions

The same error is shown in both tests

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "workbench_moderation.inline_editing_disabler".

Issue fork scheduler-3495229

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jonathan1055 created an issue. See original summary.

jonathan1055’s picture

Title: PHPUnit tests fail with core 11.1 and phpunit 8.3.15 » PHPUnit tests fail with core 11.1, ok at 11.0
Issue summary: View changes

The workbench source has not changed:

workbench_moderation               1.8.0
workbench_moderation_actions       dev-3435732-automated-drupal-11

  • jonathan1055 committed 821f20f6 on 2.x
    Issue #3495229 by jonathan1055: Part 1 - Set workbench moderation tests...

jonathan1055 changed the visibility of the branch 3495229-workbench-moderation to hidden.

  • jonathan1055 committed 13b35a8f on 8.x-1.x
    Issue #3495229 by jonathan1055: Part 1 - Set workbench moderation tests...
jonathan1055’s picture

As this is a fairly niche part of the Scheduler functionlity the first step is to move the Workbench Moderation tests to a separate test group and set that group to be manual. This will fix the scheduled pipelines, and then we can work on the actual test fault separately.

  • jonathan1055 committed 99b288fd on 2.x
    Issue #3495229 by jonathan1055: Align template changes from 8.x-1.x
    

jonathan1055 changed the visibility of the branch 3495229-workbench-moderation-tests-8.x-1.x to hidden.

jonathan1055’s picture

Title: PHPUnit tests fail with core 11.1, ok at 11.0 » Workbench tests fail on D11.1 with ServiceNotFoundException: You have requested a non-existent service
jonathan1055’s picture

Workbench Moderation issue #3497962: \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container. fixed the probem and 8.x-1.9 was released 18 Feb 2025. So we can run our tests again.

  • jonathan1055 committed f3efebca on 2.x
    Issue #3495229 by jonathan1055: Restore Workbench Moderation test
    

jonathan1055 changed the visibility of the branch 3495229-restore-wbm-tests to hidden.

jonathan1055 changed the visibility of the branch 3495229-restore-wbm-tests to hidden.

  • jonathan1055 committed ea652ba5 on 8.x-1.x
    Issue #3495229 by jonathan1055: Restore Workbench Moderation test
    

jonathan1055 changed the visibility of the branch 2.x to hidden.

jonathan1055 changed the visibility of the branch 3495229-restore-wbm-tests-8.x-1.x to hidden.

jonathan1055 changed the visibility of the branch 3495229-workbench-moderation-tests-8.x-1.x to hidden.

jonathan1055’s picture

Status: Active » Fixed

Workbench Moderation tests are now restored and running in 2.x and 8.x-1.x

Status: Fixed » Closed (fixed)

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