Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Critical
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
14 Jan 2010 at 20:09 UTC
Updated:
3 Jan 2014 at 01:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidWe should always list every install profile in _system_rebuild_module_data().
Comment #2
dave reidWithout tab character this time. I'm still trying to track down why we haven't been able to notice this before, aside from the fact that the testbot always uses the default profile and never minimal.
Comment #3
dave reidThe reason why this seems to happen is DWTC->setUp() calls drupal_install_system(), which performs system_rebuild_module_data(). But currently at that point we haven't yet done variable_set('install_profile', 'standard') in setUp(). So that system_rebuild_module_data() that populates {system} right before uses our cached install profile variable, which is 'minimal'.
Comment #4
webchickMargh! :(
Comment #5
dave reidArg, this makes install profiles show up on the modules page.
Comment #6
dave reidHere's better solved from within the testing system. Fixes the problem of any variable_get() calls before $this->refreshVariables() not being 'clean'.
Comment #7
dave reidBetter one that uses 'proper' global declaring.
Comment #8
dave reidComment #9
sunThanks for taking the time to report this issue.
However, marking as duplicate of #347959: modules_installed is broken during testing.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.
Comment #10
dave reidIt's actually not... :)
Comment #11
boombatower commentedMakes sense, and bot likes it.
Comment #12
sunWhile I basically agree with this patch, I don't think we should commit this patch. Instead, we want to sure that the testing framework does _exactly_ the same as a regular install, which is what #347959: modules_installed is broken during testing is about.
Comment #13
webchickI would like to pursue both.
Since the other patch includes this fix anyway, let's get this in for alpha 1, to stop the mega-critical bug, since it touches only SimpleTest and not module_enable() and friends... and then let's uncover the real bug at the other issue.
Committed to HEAD. Exxxxxxcellent. :)