Set a 403 page and check that it appears. Assert that blocks and tabs do not appear.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cwgordon7’s picture

Hang on - blocks *do* appear on 403 pages. Are you saying this is a bug?

chx’s picture

Sorry I was mistaken. 404 pages do not have blocks. 403 have.

swentel’s picture

Status: Active » Needs review
FileSize
2.36 KB

403 functionality, copied most of 404 patch, easy :)

catch’s picture

Status: Needs review » Needs work

Copied it a little too much, the function needs renaming to something more accurate than pageNotFound() ;)

swentel’s picture

Status: Needs work » Needs review
FileSize
2.36 KB

Ah crap! Fixed that :)

catch’s picture

Status: Needs review » Reviewed & tested by the community

Didn'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.

catch’s picture

FileSize
2.44 KB

And the patch.

lilou’s picture

Patch still applies.

Is this issue is a duplicate of this one : #316186: Test for Custom Access Denied ?

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed! Thanks. :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.