Download & Extend

functional test for node_teaser()

Project:SimpleTest
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The attached test runs a few tests on d6's node_teaser(). It is based on several tests in http://drupal.org/node/180425. This work is sponsored by CivicActions.

It runs 119 tests but 117 of them are run by 3 assert functions in a loop that tests edge cases of node_teaser with varying $size parameters.

Comments

#1

Forgot the patch

AttachmentSizeStatusTest resultOperations
node_teaser.test_.txt4.82 KBIgnored: Check issue status.NoneNone

#2

Great stuff.
I made few changes to your test.

  • Added setup and teardown functions
  • in testFirstSentenceQuestion I removed asdlkfj from expected teaser var.

If there is a reason you left asdlkfj in that var please comment otherwise I'll commit this.

AttachmentSizeStatusTest resultOperations
node_teaser.test4.91 KBIgnored: Check issue status.NoneNone

#3

'asdlkfj' was a mistake that I had done in demonstrating how unit tests work. thanks for removing it

#4

Status:needs review» reviewed & tested by the community

Looking over the test it looks sane. I ran it and everything passed. marking rtbc

#5

Status:reviewed & tested by the community» fixed

Committed thanks Bevan and beeradb for review.

#6

Status:fixed» closed (fixed)

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

nobody click here