Improve how KernelTestBase manages its persistent key value storage

Created on 4 May 2023, almost 2 years ago
Updated 10 May 2023, almost 2 years ago


Problem/Motivation

Per @alexpott in #3278493-112: Make it easier for theme builders to enable Twig debugging and disable render cache :

I wish we'd added a bigger comment in 🐛 Do not use persist tag for keyvalue.memory in KernelTestBase Fixed

When I reviewed #3358048 it all seemed pretty clear and self-documenting to me. But it's a very important change and a somewhat tricky part of Drupal (Kernel tests are always a bit weird). So probably we should be a bit more verbose.

Steps to reproduce

Proposed resolution

Flesh out the docs on both the $keyValue protected member itself, and the spot we manipulate it in ::register().

Remaining tasks

  1. Decide what more to say.
  2. Update the comments.

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

9.5

Component
PHPUnit 

Last updated about 6 hours ago

Created by

🇺🇸United States dww

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

Comments & Activities

Production build 0.71.5 2024