I've added some instructions to simpletest unit test documentation in #580076: Simpletest handbook does not cover unit testing need to add code to simpletest example module.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | examples.simpletest_example_add_unit_test_1261014_04.patch | 4.28 KB | rfay |
| #3 | simpletest_unit_test_example-1261014-3.patch | 2.3 KB | Rok Žlender |
| #1 | simpletest_unit_test_example-1261014.patch | 1.79 KB | Rok Žlender |
Comments
Comment #1
Rok Žlender commentedAdding patch for it.
Comment #2
Rok Žlender commentedFound another example for unit testing and will merge in the one in this issue.
Comment #3
Rok Žlender commentedThis patch now reflects unit testing example on http://drupal.org/node/811254 I will update the documentation when this is pulled and add same note header as on http://drupal.org/simpletest-tutorial-drupal7.
Comment #4
Rok Žlender commentedComment #5
rfayThanks so much!
Committed with a few extra comments (please see that you approve):
7.x-1.x: 34bf934
8.x-1.x: 942d1e6
Comment #6
Rok Žlender commentedLooks good! I updated the docs at to reflect the example module code and put a note that code exists.