Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The existing \Drupal\Tests\memcache\Kernel\MemcacheBackendTest is failing:
Testing Drupal\Tests\memcache\Kernel\MemcacheBackendTest
ArgumentCountError : Too few arguments to function Drupal\memcache\MemcacheBackendFactory::__construct(), 2 passed in /.../d8/modules/memcache/tests/src/Kernel/MemcacheBackendTest.php on line 29 and exactly 3 expected
/.../d8/modules/memcache/src/MemcacheBackendFactory.php:48
/.../d8/modules/memcache/tests/src/Kernel/MemcacheBackendTest.php:29
/.../d8/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php:97
/.../d8/core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php:131
Proposed resolution
- Fix the failing test.
- Enable automated testing on Drupal.org infrastructure.
Remaining tasks
- Fix the failing test.
- Enable automated testing on Drupal.org infrastructure.
User interface changes
To be determined.
API changes
To be determined.
Data model changes
To be determined.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3002490-3.patch | 821 bytes | Beakerboy |
Comments
Comment #2
idebr CreditAttribution: idebr at iO commentedComment #3
BeakerboyThis patch resolves the exceptions and allows the tests to run.
Comment #5
BeakerboyTests fail because the memcache extension does not exist on the CI. The code should probably mark the tests as skipped instead of throwing exceptions.
Comment #7
japerry