changes on the new test suite.
This commit is contained in:
parent
373a0ac994
commit
662b341212
@ -16,7 +16,6 @@ class Doctrine_DbalTestCase extends Doctrine_TestCase
|
||||
{
|
||||
// Setup a db connection if there is none, yet. This makes it possible
|
||||
// to run tests that use a connection standalone.
|
||||
// @todo Make DBMS choice configurable
|
||||
if ( ! isset($this->sharedFixture['connection'])) {
|
||||
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
|
||||
}
|
||||
|
@ -11,14 +11,8 @@ class Doctrine_DbalTestSuite extends Doctrine_TestSuite
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
// @todo Make DBMS choice configurable
|
||||
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
|
||||
}
|
||||
|
||||
protected function loadConnection($conn, $name)
|
||||
{
|
||||
return Doctrine_Manager::connection($conn, $name);
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
{}
|
||||
|
@ -34,7 +34,6 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase
|
||||
{
|
||||
// Setup a db connection if there is none, yet. This makes it possible
|
||||
// to run tests that use a connection standalone.
|
||||
// @todo Make DBMS choice configurable
|
||||
if ( ! isset($this->sharedFixture['connection'])) {
|
||||
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
|
||||
}
|
||||
|
@ -10,16 +10,8 @@ class Doctrine_OrmTestSuite extends Doctrine_TestSuite
|
||||
{
|
||||
protected function setUp()
|
||||
{
|
||||
// @todo Make DBMS choice configurable
|
||||
//$pdo = new PDO('sqlite::memory:');
|
||||
//$this->sharedFixture['connection'] = $this->loadConnection($pdo, 'sqlite_memory');
|
||||
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
|
||||
}
|
||||
|
||||
protected function loadConnection($conn, $name)
|
||||
{
|
||||
return Doctrine_Manager::connection($conn, $name);
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user