I am testing a module that I am writing against the Unit Testing framework that comes with Drupal 7. All makes sense, and everything asserts as it should.
My question though, is it possible to run test cases against test data?
I can think of a few options/answers:
- Trick the unit test into not setting up a test database, and just run against the live data (I don't want to do this, its hackish)
- It's also very possible that testing against test data is not the place of a unit test, because technically a unit test should pass if there is data or not - from my understand of unit testing.
Should functionality testing be done in a different place than the SimpleTest framework? Or is there a way to test against data sets?