Problem/Motivation
\Drupal\Tests\system\Functional\Common\UrlTest contains 7 test methods, and all but part of one of these are trivial to convert to a kernel test.
Steps to reproduce
Proposed resolution
Move the parts that can be converted trivially to a kernel test.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3211480-5.patch | 19.27 KB | longwave |
Comments
Comment #2
longwaveComment #4
daffie commentedA lot of testing is being removed in the patch. Do does test not be replaced with their kerneltest versions or can they just be removed?
There are a couple of unused use statements in the patch.
Comment #5
longwaveFixed the use statements.
Scanning the patch looks like a lot of lines have been removed, but what has actually happened is the entire functional test has been copied to the kernel test, and then parts of both old and new files have been removed. However, all assertions from the original test should exist in either the new test or remain in the original test.
Comment #6
daffie commented@longwave: You are right, no testing will be lost.
All code changes look good to me.
Comment #9
catchCommitted/pushed to 9.3.x and cherry-picked to 9.2.x, thanks!