I'm working on a supporting module to webform and need the thest harness working. I suggest a small modification to the test class so that the initialisation can be done from the original test classes and added tests in the module related tests.
Modification includes allowing the init method to take parameters of modules to be enabled.

  function setUp($added_modules = array()) {

    // Enable Webform.
    $modules = array('webform', 'profile');
    parent::setUp(array_merge($modules, $added_modules));

Comments

stenjo’s picture

... and here is the patch that fixes it :-)

stenjo’s picture

Status: Active » Patch (to be ported)
stenjo’s picture

Sorry, the previous patch was created with the wrong version of webform. This one should be the correct one - 7.x-4.x-dev

quicksketch’s picture

Issue summary: View changes
Status: Patch (to be ported) » Fixed
StatusFileSize
new720 bytes

Thanks, great idea. Our 4.x branch has moved since this was rolled, but I've updated it and committed to the 7.x-4.x branch.

  • Commit 4f1d53a on 7.x-4.x by quicksketch:
    Issue #1878016 by stenjo, quicksketch: Allowing supporting modules hook...
fenstrat’s picture

Version: 7.x-4.x-dev » 8.x-4.x-dev
Assigned: Unassigned » fenstrat
Status: Fixed » Patch (to be ported)

Needs porting to 8.x-4.x.

fenstrat’s picture

Version: 8.x-4.x-dev » 7.x-4.x-dev
Assigned: fenstrat » Unassigned
Status: Patch (to be ported) » Fixed

Committed and pushed 4f1d53a to 8.x-4.x. Thanks!

  • Commit 5758890 on 8.x-4.x by fenstrat:
    Issue #1878016 by stenjo, quicksketch: Allowing supporting modules hook...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.