Right now drupal_web_test_case always uses the default profile when installing. This is problematic for a couple reasons - for example, I can't test an alternate profile to make sure it runs correctly.

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new1.35 KB

this patch seems to work

boombatower’s picture

I think the method of setting the install profile should be more "temporary" in that it won't effect other tests (if not reset). A parameter in setUp possible?

This might be better to move to core and discuss there and port back to 6.x.

pwolanin’s picture

StatusFileSize
new1.56 KB

maybe needs to change the variable set too?

pwolanin’s picture

pwolanin’s picture

StatusFileSize
new4.24 KB

re-roll per core patch #9

pwolanin’s picture

StatusFileSize
new4.37 KB

re-roll per core patch #12 - just moves one line

boombatower’s picture

Status: Needs review » Postponed

Until core issue gets in.

boombatower’s picture

Status: Postponed » Closed (won't fix)

1.x no longer maintained...fixed in 2.x.

pwolanin’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Closed (won't fix) » Needs work

This is NOT fixed in 6.x-2.x. All the core tests will still use the default profile.

dave reid’s picture

Actually this is implemented in 6.x-2.x? I backported it myself from D7?

pwolanin’s picture

@David Reid - please show me in the code how I can set ALL tests to run using a profile other than 'default'. I see how I can override it per-test, but that's doesn't help with the core tests, etc, if I want to test them against some other profile.

dave reid’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev

I just checked and it's not possible to do that with the D7 core SimpleTest module, which this module's 6.x-2.x branch is a straight port from. So this would need to be something for a core patch, or SimpleTest 7.x-2.x.