Currently DrupalWebTestCase::setUp() is installing modules and then running tests on the same request.
It is also performing a run cron after the installation, so if some module implement hook_cron()(i.e. versioncontrol) and need to use one of its dependencies feature during it(i.e. dbtng autoload register during dbtng_boot()) it produces errors.
Naturally this happens only when you have not installed the module with the hook_boot() on the drupal running simpletest, because if it has it installed, the initial bootstrap before getting into setUp() method will trigger the invocation for the simpletest run. This i.e. happens on drupal.org testbots, and that's why i.e. versioncontrol tests does not run for 6.x-2.x
I'll add a patch just after this post.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 0001-Issue-1843018-by-marvil07-Run-hook_boot-for-installe.patch | 890 bytes | marvil07 |
Comments
Comment #1
marvil07 commentedThe patch!
Comment #2
marvil07 commentedNotice this is fixed since D7. There, inside
module_enable()there is code to fix that, see #620298: Schema not available in hook_install() for details.Comment #2.0
marvil07 commentedChange wrong version reference
Comment #3
lendudeThis version is not supported anymore.