Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixing store and retrieve factory state methods. #1620

Merged
merged 1 commit into from

2 participants

@ianmacl

This will fix the issues with the legacy unit tests that are breaking the build.

@LouisLandry LouisLandry merged commit 9ad65ec into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 20, 2012
  1. @ianmacl
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  tests/core/case/case.php
View
3  tests/core/case/case.php
@@ -36,6 +36,7 @@
'application' => null,
'config' => null,
'dates' => null,
+ 'database' => null,
'session' => null,
'language' => null,
'document' => null,
@@ -346,6 +347,7 @@ protected function restoreFactoryState()
JFactory::$document = $this->_stashedFactoryState['document'];
JFactory::$acl = $this->_stashedFactoryState['acl'];
JFactory::$mailer = $this->_stashedFactoryState['mailer'];
+ JFactory::$database = $this->_stashedFactoryState['database'];
}
/**
@@ -386,6 +388,7 @@ protected function saveFactoryState()
$this->_stashedFactoryState['document'] = JFactory::$document;
$this->_stashedFactoryState['acl'] = JFactory::$acl;
$this->_stashedFactoryState['mailer'] = JFactory::$mailer;
+ $this->_stashedFactoryState['database'] = JFactory::$database;
}
/**
Something went wrong with that request. Please try again.