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()).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Title: Installation profile is not registered as module, unless identical to parent site » Installation profile is not installed and not registered as module, unless identical to parent site
Dave Reid’s picture

Status: Needs review » Reviewed & tested by the community

Makes a lot of sense and passes the test bot.

catch’s picture

Version: 8.x-dev » 7.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

There'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.

oriol_e9g’s picture

Status: Patch (to be ported) » Needs review
FileSize
939 bytes

Fast reroll for D7

sun’s picture

Status: Needs review » Reviewed & tested by the community

Thank you! :)

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Yuck. Nice find!

Committed and pushed to 7.x. Thanks!

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