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
FieldApiDataTest
is making no HTTP requests but is a functional test.
Proposed resolution
- Convert
FieldApiDataTest
into a Kernel test. - Polish to make it more readable.
- Cleanup
::setUp()
and move object creation only in tests that actually use them so that they are not unnecessary created every time.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
N/A
Comment | File | Size | Author |
---|---|---|---|
#4 | 3041696-4.patch | 26.31 KB | claudiu.cristea |
Comments
Comment #2
claudiu.cristeaPatch.
Comment #3
claudiu.cristeaComment #4
claudiu.cristeaCoding standards.
Comment #5
LendudeDiff is pretty hard to read. Did a line by line comparison using FileMerge and it checks out.
The big change that throws of diff seems to be the move of the field and node creation out of setup and into testEntityFieldFilter.
Comment #6
larowlanCrediting lendude, line by line reviews are a lot of work. I applied the patch locally and rebuilt it with -M25% and it was much easier to read as it detected the move, confirming it looks good.
Comment #8
larowlanCommitted 3a200fd and pushed to 8.8.x. Thanks!
c/p to 8.7 as a28722f49b