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.
Set a 403 page and check that it appears. Assert that blocks and tabs do not appear.
Comment | File | Size | Author |
---|---|---|---|
#7 | 403test.patch | 2.44 KB | catch |
#5 | 403_functionality_test.patch | 2.36 KB | swentel |
#3 | 403_functionality_test.patch | 2.36 KB | swentel |
Comments
Comment #1
cwgordon7 CreditAttribution: cwgordon7 commentedHang on - blocks *do* appear on 403 pages. Are you saying this is a bug?
Comment #2
chx CreditAttribution: chx commentedSorry I was mistaken. 404 pages do not have blocks. 403 have.
Comment #3
swentel CreditAttribution: swentel commented403 functionality, copied most of 404 patch, easy :)
Comment #4
catchCopied it a little too much, the function needs renaming to something more accurate than pageNotFound() ;)
Comment #5
swentel CreditAttribution: swentel commentedAh crap! Fixed that :)
Comment #6
catchDidn't apply for some reason due to whitespace changes in HEAD, otherwise RTBC. I've re-rolled for whitespace only, so please don't credit on commit.
Comment #7
catchAnd the patch.
Comment #8
lilou CreditAttribution: lilou commentedPatch still applies.
Is this issue is a duplicate of this one : #316186: Test for Custom Access Denied ?
Comment #9
webchickCommitted! Thanks. :)
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.