Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | node_teaser.test | 4.91 KB | Rok Žlender |
#1 | node_teaser.test_.txt | 4.82 KB | Bevan |
Comments
Comment #1
Bevan CreditAttribution: Bevan commentedForgot the patch
Comment #2
Rok Žlender CreditAttribution: Rok Žlender commentedGreat stuff.
I made few changes to your test.
If there is a reason you left asdlkfj in that var please comment otherwise I'll commit this.
Comment #3
Bevan CreditAttribution: Bevan commented'asdlkfj' was a mistake that I had done in demonstrating how unit tests work. thanks for removing it
Comment #4
beeradb CreditAttribution: beeradb commentedLooking over the test it looks sane. I ran it and everything passed. marking rtbc
Comment #5
Rok Žlender CreditAttribution: Rok Žlender commentedCommitted thanks Bevan and beeradb for review.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.