Download & Extend

Clean up node access pager test

Project:Drupal core
Version:7.x-dev
Component:node.module
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:needs backport to D7

Issue Summary

While I was doing some work on a node access issue, I noticed that the node access pager test we added in #681760: Try to improve performance and eliminate duplicates caused by node_access table joins could use a little cleanup for easier debugging. The attached patch clarifies some assertion messages and comments, and removes assertion messages that hide the more specific message provided by the base class method.

AttachmentSizeStatusTest resultOperations
node-access-pager-cleanup.patch2.08 KBIdlePASSED: [[SimpleTest]]: [MySQL] 41,307 pass(es).View details

Comments

#1

Status:needs review» reviewed & tested by the community

quoting xjm from IRC: "the logic is that assertText() and assertRaw() provide their own assertion messages that are much more specific" and that's why those get messages removed the others just the t().

#2

Status:reviewed & tested by the community» needs work

A minor thing: the first occurrence of "Lookup" was replaced with "Look up" but the second was left as-is, they should both either be left as-is or changed to the same values; fyi "lookup" is a valid word so I'd question the need to change it at all.

Beyond that, the patch works fine and does exactly what it says it does - the messages from the base class are displayed instead of the previously overridden values.

#3

Status:needs work» reviewed & tested by the community

Actually, that's incorrect. "Lookup" is a noun. "Look up" is a verb. :)

#4

Status:reviewed & tested by the community» needs work

Per irc, there's a second occurrence of "lookup" :)

#5

Status:needs work» needs review

I get it now. Here's that fixed as well. Thanks @DamienMcKenna!

Also tagging for backport for parity.

AttachmentSizeStatusTest resultOperations
1786124-5.patch2.12 KBIdlePASSED: [[SimpleTest]]: [MySQL] 41,291 pass(es).View details
interdiff.txt765 bytesIgnored: Check issue status.NoneNone

#6

Status:needs review» reviewed & tested by the community

Setting it back to RTBC based because chx liked it and my own review.

#7

Version:8.x-dev» 7.x-dev
Status:reviewed & tested by the community» patch (to be ported)

Yep. Committed/pushed to 8.x.

#8

Status:patch (to be ported)» needs review

Backported #5 to D7.

AttachmentSizeStatusTest resultOperations
node-test-cleanup-1786142-8.patch1.98 KBIdlePASSED: [[SimpleTest]]: [MySQL] 39,417 pass(es).View details

#9

Status:needs review» reviewed & tested by the community

Looks good, thanks @dcam!

#10

Status:reviewed & tested by the community» fixed

Committed and pushed to 7.x, too. Thanks!

#11

Status:fixed» closed (fixed)

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