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 commentedForgot the patch
Comment #2
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 commented'asdlkfj' was a mistake that I had done in demonstrating how unit tests work. thanks for removing it
Comment #4
beeradb commentedLooking over the test it looks sane. I ran it and everything passed. marking rtbc
Comment #5
Rok Žlender commentedCommitted thanks Bevan and beeradb for review.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.