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()).
Files: 
CommentFileSizeAuthor
#4 test-profile-1373634-4.patch939 bytesoriol_e9g
PASSED: [[SimpleTest]]: [MySQL] 37,225 pass(es).
[ View ]
drupal8.test-profile-install.0.patch964 bytessun
PASSED: [[SimpleTest]]: [MySQL] 34,157 pass(es).
[ View ]

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
StatusFileSize
new939 bytes
PASSED: [[SimpleTest]]: [MySQL] 37,225 pass(es).
[ View ]

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.