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.
On #2920309-79: Add experimental module for Help Topics, @dawehner suggested moving this method to a unit test:
+++ b/core/modules/help_topics/tests/src/Functional/HelpTopicTest.php
@@ -0,0 +1,347 @@
+ */
+ public function testTopicBodyGetSet() {
Comment | File | Size | Author |
---|---|---|---|
#5 | 2943921.patch | 11.16 KB | jhodgdon |
Comments
Comment #2
andypostYes, coverage at unit level makes sense
Comment #3
jhodgdonIt really is a unit test. I think I just put it in the Functional test for convenience. It should be moved to its own test.
Comment #5
jhodgdonIt turned out we could move 2 methods from HelpTopicTest to a new HelpTopicKernelTest. So, I went ahead and committed this, since it is just moving test methods around (straight copy/paste), and the tests still pass locally. I'll also update the Core patch. Attaching patch here for the record...