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.
This link appears when comments are enabled but not available to anonymous users - we need a test to ensure it appears correctly.
Comment | File | Size | Author |
---|---|---|---|
#7 | comment-register-296484.patch | 1.11 KB | jonskulski |
#4 | issue-296484.patch | 1.06 KB | lilou |
#2 | anon_user.patch | 845 bytes | swentel |
#1 | anon_user.patch | 718 bytes | swentel |
Comments
Comment #1
swentel CreditAttribution: swentel commentedComment #2
swentel CreditAttribution: swentel commentedChanged hardcoded nid, looks better.
Comment #3
catchPatch applies with offset, runs fine, test looks good. RTBC.
Comment #4
lilou CreditAttribution: lilou commentedRe-roll.
Comment #5
webchickUnfortunately this test fails for me. :( Can someone take a look?
Comment #6
swentel CreditAttribution: swentel commentedweird, no problem here .. not sure what goes wrong
Comment #7
jonskulski CreditAttribution: jonskulski commented@webchick: are you running out of a ~/public_html/ or similar?
Original patch assertedRaw which looked for href="/user/login...", but if you're using a RewriteBase then your urls will look something like href="/~jskulski/drupal7/user/login" and will fail the test.
This might explain what was happening, because the test was failing for me until I changed the urls to reflect my rewrite base.
Here is a rewrite of the patch that gets the links from the url function. I didn't see many examples of assertRaw with links, but this might be something to watch out for in the future.
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedThe last submitted patch failed testing.
Comment #13
emad964 CreditAttribution: emad964 commentedThere's no problem here
Comment #15
catchMoving out of the critical bug queue, see #607038: Meta issue: fix gaps in code coverage
Comment #26
bhavesh_gloscon CreditAttribution: bhavesh_gloscon commentedsame problem when updating website Drupal 7 alpha to Drupal 7.0
Comment #40
webchickF*cking spammers.
Comment #53
webchick...