The FlagFriendViewsTestCase class calls module_enable() in setup() instead of passing the dependent modules to DrupalWebTestCase::setUp(). This will cause local testing to succeed, as the views module is typically installed. On D.O, however, the test will fail because no such assumption is made.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1881138.1.ViewsNotEnabledInTests.patch | 706 bytes | socketwench |
Comments
Comment #1
socketwench commentedIdeally, I'd disentagle the two test case classes for the module. There's nothing really "wrong" with how it's done, but it just feels wrong and makes debugging harder. Even so, that's another issue.
For the time being, this patch enables views for both test classes, and removes the call to module_enable(). Technically there's nothing wrong with enabling views for FlagFriendUserTestCase, it's just unnecessary.
Comment #2
socketwench commentedIn addition to enabling views by passing to DrupalWebTestCase::setup(), test_dependencies = views needed to be added to the flag_friend.info file as per jthorson and xjm on IRC.
Commits follow:
http://drupalcode.org/project/flag_friend.git/commit/9ae8c2e
http://drupalcode.org/project/flag_friend.git/commit/b4c7d63
QA tests now show Flag_Friend as green, so closing...