- Issue created by @Project Update Bot
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → , even with these changes, this module is not yet compatible with Drupal 11.
Currently Drupal Rector, version 0.20.1, cannot fix all Drupal 11 compatibility problems.
Therefore, these changes did not update the
info.yml
file for Drupal 11 compatibility.The compatibility issues that Upgrade Status found after the Drupal Rector fixes were applied are attached to help you resolve them manually.
Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-158321These packages were used to generate the fixes:
- drupal/upgrade_status: 4.2.0
- mglaman/phpstan-drupal: 1.2.10
- palantirnet/drupal-rector: 0.20.1
- Status changed to Active
7 months ago 10:52am 6 May 2024 See https://www.drupal.org/project/disable_libraries/issues/3445444 📌 Unit tests are incompatible with Drupal 11 Active
This is an automated patch generated using Upgrade Status and Drupal Rector. Please see the issue summary for more details. A merge request (MR) is also openend and updated.
It is important that any automated tests available are run and that you manually test the changes.
Drupal 11 Compatibility
According to the Upgrade Status module → these changes make this module compatible with Drupal 11! 🎉
Therefore these changes update theinfo.yml
file for Drupal 11 compatibility.Leaving this issue open, even after committing the current patch or merging the MR, will allow the Project Update Bot → to post additional Drupal 11 compatibility fixes as they become available in Drupal Rector.
Debug information
Bot run #11-177898These packages were used to generate the fixes:
- drupal/upgrade_status: 4.3.1
- mglaman/phpstan-drupal: 1.2.11
- palantirnet/drupal-rector: 0.20.1
- Status changed to Needs review
6 months ago 3:31pm 21 May 2024 - Status changed to Fixed
5 months ago 6:35pm 30 June 2024 comparing commit history of 10.3.x branch with 11.x branch (2024-06-30)
- [x] manual diff
\Drupal\Core\Asset\LibraryDiscoveryCollector
--> no changes - [x] manual diff
\Drupal\Core\Theme\ThemeInitialization
--> no relevant changes (only deprecated code was removed
setup a local Drupal 11 test instance and run tests - This was a pain and took me multiple hours because of: 🐛 PHPUnit 10 behaves differently when invoked outside web root Needs review
mkdir test && cd test composer create-project drupal/recommended-project:11.0.0-beta1@beta . composer require --dev drupal/core-dev composer require drush/drush mkdir -p web/modules/contrib git clone https://git.drupalcode.org/project/disable_libraries.git web/modules/contrib/disable_libraries mkdir -p db ./vendor/bin/drush site:install --yes --db-url="sqlite://../db/test.sqlite" # save password for later... 725ViHSaE2 ./vendor/bin/drush pm:install disable_libraries cp ./web/core/phpunit.xml.dist ./web/core/phpunit.xml sed -i -E 's~<env name="SIMPLETEST_DB" value=""/>~<env name="SIMPLETEST_DB" value="sqlite://../../db/kernel-test.sqlite"/>~g' ./web/core/phpunit.xml sed -i -E 's~"drupal/core": "^10"~"drupal/core": "^10 | ^11"~g' web/modules/contrib/disable_libraries/composer.json sed -i -E 's~core_version_requirement: ^10~core_version_requirement: ^10 | ^11~g' web/modules/contrib/disable_libraries/composer.json cd web ../vendor/bin/phpunit -c core/phpunit.xml modules/contrib/disable_libraries/tests/src/Kernel/LibraryDisablerTest.php ../vendor/bin/phpunit -c core/phpunit.xml modules/contrib/disable_libraries/tests/src/Unit/LibraryDisablerTest.php
- [x] unit tests
- [ ] kernel tests
Kernel test passed for some reason when running from host system (sqlite3 v3.39.2), but failed when running from dev docker image (sqlite3 v3.40.1). Both should have failed because v3.45 is required. Because the kernel test doesn't test anything important (yet), this can be ignored.
So this module is compatible with Drupal 11.
Compatibility notice added in 0.1.4 - https://git.drupalcode.org/project/disable_libraries/-/commit/9add8dc78f...
- [x] manual diff
Automatically closed - issue fixed for 2 weeks with no activity.