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.
phpstorm found a couple errors in the doxygen.
Comment | File | Size | Author |
---|---|---|---|
#17 | interdiff-2177253-15-17.txt | 692 bytes | YesCT |
#17 | simpletest-doxygen-fixes-2177253-17.patch | 11.32 KB | YesCT |
#15 | interdiff-2177253-13-15.txt | 1.11 KB | YesCT |
#15 | simpletest-doxygen-fixes-2177253-15.patch | 11.33 KB | YesCT |
#13 | interdiff-2177253-11-13.txt | 527 bytes | chakrapani |
Comments
Comment #1
chx CreditAttribution: chx commentedComment #2
XanoComment #3
jhodgdonThanks! This doesn't seem quite right to me though:
a)
Sorry... "id" is a psychological term (ego, superego, id). You need to use "ID" to refer to an identifier.
b)
PHPUnit
Is that right, or is it PhpUnit? We normally use CamelCaseEvenForAcronymsLikePhp, but of course we didn't invent this... so I'm just asking which is correct?
c)
The table is most likely called "simpletest", right? Or ... actually is it a different table?
d)
Ummmm... This parameter is expecting an array of arrays? Probably needs more explanation.
e)
report -> reports
f)
As long as you are fixing things, that should be "tests'" at the end of the line there.
g)
string should be before $filename
h)
xml -> XML... and should JUnit have some capitalization?
i)
See (c).
j)
Some explanation of when/why this exception is thrown would be good? Just saying the exception is RuntimeException doesn't tell us anything useful, as the class name is pretty generic here.
Comment #4
XanoJust some explanations. Will re-roll later.
The official name is PHPUnit. We should stick to that capitalization, unless when it's used in class or property names. These occurrences are in human-readable text.
If it's a table name, it should be written in curly brackets. To me this reads "into Simpletest's table", whatever name it may have.
Nothing weird about that. It's what it is. The exact array structure should be documented at
simpletest_phpunit_xml_to_rows()
. I don't know the structure myself, just that it is an array of arrays.Comment #5
jhodgdonOK mostly... But on the table/module name...
"Inserts the parsed PHPUnit results into the Simpletest table."
The module is not called "Simpletest" and the table is not called "Simpletest", so either way this is wrong.
If you want to refer to the module's capitalized name, it should be "the Testing module" and if you want to make it clear it isn't a particular table, there should be an apostrophe like "into the Testing module's tables" or something like that.
Comment #6
XanoComment #7
jhodgdonGood, I think most of the capitalization stuff is fixed up, and the documentation seems clear enough... A few mishaps still:
a) It looks like the proper capitalization of JUnit is http://junit.org/ "JUnit".
b) "XML" should always be written that way, not "xml".
c) Still a "Simpletest" here:
Should probably say "... are displayed along with WebTestBase results" or something like that?
d)
If you want that @code block to appear as part of the @return on api.drupal.org, you need to get rid of the blank line.
Comment #8
XanoRegardless of the name of our testing module, everybody still refers to those type of tests as Simpletest tests, because that's what that framework is a port of. Besides providing a testing framework, the module also functions as our generic testing UI, which is why the name changed. WebTestBase is not a test framework name, but one of three of four base classes that Drupal provides for the Simpletest testing framework.
Comment #9
jhodgdonOK, thanks for the explanation -- works for me.
Comment #10
jhodgdonThere's an "avoid commit conflicts" issue whose patch touches this file, so I'm going to wait on committing this:
#1996238: Replace hook_library_info() by *.libraries.yml file
There may not be a direct conflict with this patch, but sometimes people working on Big Issues like that use a sandbox workflow that makes any changes to the same files problematic.
Comment #11
chakrapani CreditAttribution: chakrapani commentedThe patch at #8 no longer applies. Re-rolling the patch from #8.
Comment #12
jhodgdonThe rerolled patch in #11 is not quite the same as the patch in #8.
In simpletest_test_get_all() docs -- missing the ' at the end of one line in the @return.
I don't see any other differences, but can we get that ' back please?
Comment #13
chakrapani CreditAttribution: chakrapani commentedHere we go..
Comment #14
jhodgdonThanks!
Comment #15
YesCT CreditAttribution: YesCT commentedlines
Use "The .." pattern and made those a list of examples. It's also optional, so added (optional).
wrapping this to 80 chars.
but I wonder if it should specify the table name and use {} like #6 did else where.
Comment #16
YesCT CreditAttribution: YesCT commentedhow about:
Comment #17
YesCT CreditAttribution: YesCT commentedpatch that does that.
the rest looks good to me.
Comment #18
XanoComment #19
jhodgdonRE #15, we could fix a *lot* more stuff in simpletest.module... Thanks for those updates! All the changes that are in the latest patch look good to me too.
Comment #20
jhodgdonThanks again, everyone! Committed to 8.x.