Problem/Motivation
\Drupal\Tests\system\Kernel\Functional\HtmlToTextTest Makes no HTTP requests but is a functional test.
Steps to reproduce
Proposed resolution
Convert \Drupal\Tests\system\Kernel\Functional\HtmlToTextTest into a Kernel test.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3414914
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3414914-convert-htmltotexttest-into
changes, plain diff MR !6191
Comments
Comment #3
spokjeComment #4
kim.pepperComment #5
kim.pepperComment #6
mstrelan commentedCouldn't this be a unit test? Think we just need to ensure the global
$base_urland$base_pathvariables are set.Comment #7
mstrelan commentedComment #8
spokjeThanks @kim.pepper for being lenient, I know technically you're absolutely right and the type hinting is out of scope.
But I feel BC and the (correct) tight scoping is slowing drupal down sometimes and hope we can be a bit more "liberal" sometimes with tests only.
@mstrelan: Very nice Sir!
Can't RTBC since I worked on it, but looks good to go to me.
Comment #9
kim.pepperUnit test looks even better!
Comment #12
catchfwiw given it's only test changes, I think it's OK to sneak some cleanup in at the same time, given the code changes are pretty minimal. If it was runtime code, more than one test at a time (which I don't think we should do for these because most have one or two or more changes beyond a rename) or made it harder to review, I would probably push back though.
Committed/pushed to 11.x and cherry-picked to 10.2.x, thanks!
Comment #13
spokjeThanks @catch, I was hoping this would be the case.
No worries, I'll do one at a time, we all know I'm just in it for the core credits... ;)