// Force our way into the session of the child site.
drupal_save_session(TRUE);
// A session cannot be written without the ssid column which is missing on
// Drupal 6 sites.
db_add_field('sessions','ssid',array('description'=>"Secure session ID. The value is generated by Drupal's session handlers.",'type'=>'varchar','length'=>128,'not null'=>TRUE,'default'=>''));
_drupal_session_write($sid,'');
// Remove the temporarily added ssid column.
db_drop_field('sessions','ssid');
drupal_save_session(FALSE);
// Restore necessary variables.
...
...
@@ -137,6 +144,11 @@ abstract class UpgradePathTestCase extends DrupalWebTestCase {
protectedfunctiontearDown(){
global$user,$language;
if(!empty($this->missing_zlib_requirement)){
parent::tearDown();
return;
}
// In case a fatal error occured that was not in the test process read the