Problem/Motivation
Breaking changes in 11.2:
#3410938: Create enums for RequirementSeverity and deprecate drupal_requirements_severity() constants
#3497431: Deprecate TestDiscovery test file scanning, use PHPUnit API instead
Steps to reproduce
Try to run PB 2.1.x with Drupal Core 11.2
Proposed resolution
- Update the REQUIREMENT_* constants
- Switch annotations to attributes for PHPUnit (but don't remove @group yet since the core issue was reverted)
Issue fork project_browser-3527063
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
Comment #3
tim.plunkettComment #5
mondrakeCannot find a way out.
1) Cannot bump PHPUnit to 11 as core jobs do. PHPUnit 11 requires sebastian/diff 6, but apparently drupal/core-recommended has requirements that block both updates.
2) Trying to run tests by specifying
--directoryinstead of--moduledoes not work. Strange because tests for Image effects do work: https://git.drupalcode.org/project/image_effects/-/pipelines/508827Going to bed now...
Comment #6
tim.plunkettComment #7
tim.plunkett@mondrake should be credited wherever we end up fixing our Gitlab setup, when that happens (or in #3526778: Tests not running or failing when using run-tests.sh in 11.2.0-dev)
Comment #8
mondrakeQuestion: in this type of build, what is the path to the directories where test classes are defined? In relation if possible to Drupal's core
/coresubdirectory.Asking because if it's missing from the list here (example for Javascript tests section of core's phpunit.xml.dist), we may want to try to add to the MR in #3497431: Deprecate TestDiscovery test file scanning, use PHPUnit API instead.
Comment #9
phenaproximaThat seems extremely shippable, and definitely blocks a 2.1.0 release since that's the one with Drupal 11.2 compatibility.
Comment #12
chrisfromredfinWünderbar! This is great.