Problem/Motivation
This test is a regression test for #2807263: Impossible to write unit tests involving Vocabulary, because TAXONOMY_HIERARCHY_(DISABLED|SINGLE|MULTIPLE) are defined in taxonomy.module instead of VocabularyInterface, which was needed because of constants defined in the module file:
* When a Vocabulary entity is unserialized before the modules have been loaded
* (which happens in the KernelPreHandle Stack middleware), then the constants
* that the Vocabulary entity uses are not yet available because they are set in
* taxonomy.module. This means that for example the PageCache middleware cannot
However, taxonomy.module no longer contains any constants.
This test should no longer be needed.
Steps to reproduce
Proposed resolution
Remaining tasks
- agree that it can be removed
- remove the test & the test module
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #4
borisson_I agree that it can be removed. Tagging as novice since the actual steps to remove the test and test module are easy.
Comment #7
brandonlira commentedI’ve created a merge request to remove VocabularySerializationTest since it’s no longer needed. You can find it here: https://git.drupalcode.org/project/drupal/-/merge_requests/11296.
Let me know if any feedback or additional changes are required.
Thank you!
Comment #8
penyaskitoComment #9
catchNeeds a rebase.
Comment #11
charlliequadros commentedHi @penyaskito,
I resolved the conflict in the MR.
Comment #12
charlliequadros commentedComment #14
catchSince it's just removing the file, going ahead from needs review here (would have been OK to restore the RTBC).
Committed/pushed to 11.x, thanks!