Replace MemoryCounterBackend with PHPUnit mocks

Created on 20 January 2023, over 2 years ago

Problem/Motivation

\Drupal\Core\Cache\MemoryCounterBackend is only used in tests and has the following @todo:

 * @todo On the longrun this backend should be replaced by phpunit mock objects.

It is only used in two tests:

  • Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase
  • Drupal\Tests\path_alias\Kernel\AliasTest

Steps to reproduce

Proposed resolution

Refactor the tests to use PHPUnit mocks instead.
Deprecate MemoryCounterBackend for removal.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

10.1

Component
Cache 

Last updated 12 days ago

Created by

🇬🇧United Kingdom longwave UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024