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.
From #299176: Replace db_rewrite_sql() with hook_query_alter(). it was found that we need some tests for the forum module blocks. Anyone want to take a stab at this?
Comment | File | Size | Author |
---|---|---|---|
#10 | 440344_forum_block_tests3.patch | 7.87 KB | Berdir |
#8 | 440344_forum_block_tests2.patch | 7.51 KB | Berdir |
#3 | 440344_forum_block_tests.patch | 7.75 KB | Shawn DeArmond |
Comments
Comment #1
catchMoving this out of the critical bugs queue - see #607038: Meta issue: fix gaps in code coverage.
Comment #2
Shawn DeArmond CreditAttribution: Shawn DeArmond commentedTaking a stab... patch forthcoming...
Comment #3
Shawn DeArmond CreditAttribution: Shawn DeArmond commentedHere's my stab.
Comment #5
Shawn DeArmond CreditAttribution: Shawn DeArmond commentedHuh? It passed on my computer. I just tried it again. What's going on?
Comment #6
Shawn DeArmond CreditAttribution: Shawn DeArmond commented#3: 440344_forum_block_tests.patch queued for re-testing.
Comment #8
BerdirRe-roll, a few doc changes and node_load_multiple($result->fetchCol()) to simplify some DBTNG code.
Comment #10
BerdirAh, yeah, the usual :)
Test bot doesn't have clean url's enabled and isn't installed in example.org/ (but example.org/something), so you can't do something like assertRaw() on 'href="/node/5"'.
Here's a re-roll which uses xpath. Note that I did not review if the tests are correct, I just re-rolled and fixed the fails.
Comment #11
Shawn DeArmond CreditAttribution: Shawn DeArmond commentedAha! Thanks! That was driving me crazy. I had pretty much given up.
Comment #12
ArtusamakThis chunk isn't working (patching failed).
$s should be renamed as $plural and use core function format_plural().
$plural = format_plural($newest_topic['comment_count'], '', 's');
The statement for the plural form should be inside the if statement otherwise you could have warning generated.
The rest of the patch is okay.
Powered by Dreditor.
Comment #13
Artusamak