Several messages from the assertions in DrupalWebTestCase emit literal percent signs (%):

assertRaw() emits '%s found'
assertNoRaw() ALSO emits '%s found' (ie: should be NOT found, too)
assertPattern() emits 'Pattern %s found'
assertNoPattern() emits 'Pattern %s not found'

Other methods don't create good default messages when none are passed:

assertTitle()
assertFieldBy[No]XPath()
assert[No]Field()

CommentFileSizeAuthor
#1 simpletest-default-messages.patch3.85 KBlyricnz

Comments

lyricnz’s picture

Status: Active » Needs review
StatusFileSize
new3.85 KB

Attached patch adds missing default messages, and fixes the % signs. I have notice that assertTitle() doesn't work, but will file separate issue for this.

lyricnz’s picture

Version: 6.x-2.5 » 6.x-2.x-dev

Patch is against SimpleTest 6.x-2.x-dev (2008-Dec-11)

boombatower’s picture

Assigned: Unassigned » boombatower
Status: Needs review » Fixed

Complete backport of Drupal 7.x SimpleTest module. (voids all backports). (SimpleTest 2.6)

Please re-open if still an issue.

Status: Fixed » Closed (fixed)

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