See #1213536-66: Non-resettable theme_get_registry() cache causes problems for non-interactive installations and subsequent comments.

Dave Reid pointed out that the issue is probably caused by resetting the global $conf in Simpletest's setUp() method, before setUp() makes some variable_get() calls that would have read from it.

Comments

David_Rothstein’s picture

Version: 8.x-dev » 7.x-dev
Status: Active » Needs review
StatusFileSize
new1.64 KB

Actually, this was broken in D8 for a long time, but it seems like it might have recently been fixed as part of a reorganization of the setUp() code. (I haven't verified that, but that's what it looks like to me from reading the new D8 code.)

So, here's an (untested) patch for D7 based on the idea above.

sun’s picture

Status: Needs review » Closed (duplicate)

#1541958-15: Split setUp() into specific sub-methods refactored setUp() into individual methods.

The D8-only #1404198: Separate database cache clearing from static cache clearing and data structure rebuilding shortly after discovered the (existing) strange order of operations (not changed by the split patch), and precisely for this reason, my intention was to keep all changes bundled together in above issue + patches, but @Dries committed the necessary fix as part of that other patch.

In turn, what we actually want to do is to perform the full backport of changes in #1541958: Split setUp() into specific sub-methods