Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
simpletest.module
Priority:
Critical
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
12 Feb 2014 at 13:05 UTC
Updated:
29 Jul 2014 at 23:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sunTechnically, Drupal does exactly what it is supposed to do now:
Cleanly separate the test site environment from the parent site environment.
In other words, the built-in multi-site functionality just simply works and performs its job. And it performs well :)
Comment #2
longwaveI agree that in one way this is "works as designed", but I can also see the case where someone is actively using a multisite install, adds a new site to it, and wants to run web tests against custom or contrib code inside that new site - now, they are no longer able to do that without making the code available to all sites in the install, but this may not be feasible if e.g. there is a different version of those modules in another site in the install.
Comment #3
sunYeah, I guess I can see how that could possibly break your common development workflow, in case you're using the multi-site functionality yourself.
Attached patch adds a tweak that is very similar to the existing "parent installation profile" facility in HEAD already.
Unless you have a module with tests in a site-specific directory already, I'm additionally attaching a quick & dirty & trivial test case module that you can extract into
/sites/defaultand the MyDefault test should pass. (works for me)Comment #4
sunAny feedback, anyone? I was told that this bug is currently breaking all web tests of contributed modules, so it would be good to resolve this as quickly as possible.
Comment #5
longwaveTested this with the Ubercart test suite. Initially ran in to trouble because I didn't realise node module was no longer enabled by default, and many Ubercart tests rely on this, but finally figured out what was going on.
I can confirm that by moving Ubercart into /sites/default/modules, tests fail as they do on testbot through both the UI and run-tests.sh, but after applying this patch, both the UI and run-tests.sh successfully run all the tests I tried, so this is RTBC.
Comment #6
longwaveComment #7
catchCommitted/pushed to 8.x, thanks!
Comment #8
longwaveThis patch doesn't seem to have been pushed.
Comment #9
catchNow pushed, well spotted!