Project:Drupal core
Version:7.x-dev
Component:tests
Category:bug report
Priority:critical
Assigned:grndlvl
Status:closed (fixed)

Issue Summary

This patch was originally inside of a really large patch, was suggested to split into smaller patches.

Tests needed: common.inc
http://drupal.org/node/276272

AttachmentSizeStatusTest resultOperations
custom_access_denied_test_1.patch1.82 KBIgnored: Check issue status.NoneNone

Comments

#1

Priority:normal» critical

Just getting same priority as parent task.

#2

Status:needs review» needs work

I think we should refactor this one with PageNotFoundTestCase from system.test. After all, those are exactly the same, the only thing that change is the target path.

#3

Status:needs work» needs review

Per comment #2 suggestion this patch now applies this test to system.test rather than common.test.

AttachmentSizeStatusTest resultOperations
custom_access_denied_test_2.patch2.46 KBIgnored: Check issue status.NoneNone

#4

Looks good. I tested the patch, and it works for me.

Two suggestions:

  • Also verify the HTTP response code using assertResponse().
  • Rename the test to "403/404 errors" (or "403/404 errors pages") for consistency with the text on admin/settings:
    Error reporting
    Control how Drupal deals with errors including 403/404 errors as well as PHP error reporting.

#5

made suggested changes from comment #4.

AttachmentSizeStatusTest resultOperations
custom_access_denied_test_3.patch3.9 KBIgnored: Check issue status.NoneNone

#6

What's the difference with http://drupal.org/node/296306 ?

#7

@swentel : I think test in #296306: TestingParty08: 403 page needs a test is also include in the last patch of this issue.

#8

Status:needs review» fixed

It seems that http://drupal.org/node/296306, contains all that this patch covered.

--project followup subject--

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

#9

Status:fixed» closed (fixed)

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

nobody click here