Closed (fixed)
Project:
Scheduler
Version:
2.x-dev
Component:
Testing
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2024 at 09:29 UTC
Updated:
19 Mar 2025 at 14:44 UTC
Jump to comment: Most recent
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".
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
Comment #2
jonathan1055 commentedThe workbench source has not changed:
Comment #8
jonathan1055 commentedAs 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.
Comment #11
jonathan1055 commentedhttps://www.drupal.org/project/workbench_moderation
Comment #12
jonathan1055 commentedWorkbench 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.
Comment #22
jonathan1055 commentedWorkbench Moderation tests are now restored and running in 2.x and 8.x-1.x