Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem
- The installation profile of a test case (
$this->profile
) is not installed.
Details
- At the time DrupalWebTestCase::setUp() tries to install the installation profile, the module registry has already been primed — and contains the installation profile of the parent site.
- This means that no hooks are invoked in the installation profile (including
hook_install()
).
Comment | File | Size | Author |
---|---|---|---|
#4 | test-profile-1373634-4.patch | 939 bytes | oriol_e9g |
drupal8.test-profile-install.0.patch | 964 bytes | sun | |
Comments
Comment #1
sunComment #2
Dave ReidMakes a lot of sense and passes the test bot.
Comment #3
catchThere's still so many child/parent bugs with simpletest hidden in there. I don't see us being able to write a dedicated test for this, however it fixes failing tests in the big simpletest cleanup issue so that's good enough for test coverage.
Committed/pushed to 8.x, this will need a quick re-roll for 7.x.
Comment #4
oriol_e9gFast reroll for D7
Comment #5
sunThank you! :)
Comment #6
webchickYuck. Nice find!
Committed and pushed to 7.x. Thanks!