Commit 662b3412 authored by romanb's avatar romanb

changes on the new test suite.

parent 373a0ac9
...@@ -16,7 +16,6 @@ class Doctrine_DbalTestCase extends Doctrine_TestCase ...@@ -16,7 +16,6 @@ class Doctrine_DbalTestCase extends Doctrine_TestCase
{ {
// Setup a db connection if there is none, yet. This makes it possible // Setup a db connection if there is none, yet. This makes it possible
// to run tests that use a connection standalone. // to run tests that use a connection standalone.
// @todo Make DBMS choice configurable
if ( ! isset($this->sharedFixture['connection'])) { if ( ! isset($this->sharedFixture['connection'])) {
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection(); $this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
} }
......
...@@ -11,14 +11,8 @@ class Doctrine_DbalTestSuite extends Doctrine_TestSuite ...@@ -11,14 +11,8 @@ class Doctrine_DbalTestSuite extends Doctrine_TestSuite
protected function setUp() protected function setUp()
{ {
// @todo Make DBMS choice configurable
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection(); $this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
} }
protected function loadConnection($conn, $name)
{
return Doctrine_Manager::connection($conn, $name);
}
protected function tearDown() protected function tearDown()
{} {}
......
...@@ -34,7 +34,6 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase ...@@ -34,7 +34,6 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase
{ {
// Setup a db connection if there is none, yet. This makes it possible // Setup a db connection if there is none, yet. This makes it possible
// to run tests that use a connection standalone. // to run tests that use a connection standalone.
// @todo Make DBMS choice configurable
if ( ! isset($this->sharedFixture['connection'])) { if ( ! isset($this->sharedFixture['connection'])) {
$this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection(); $this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
} }
......
...@@ -10,16 +10,8 @@ class Doctrine_OrmTestSuite extends Doctrine_TestSuite ...@@ -10,16 +10,8 @@ class Doctrine_OrmTestSuite extends Doctrine_TestSuite
{ {
protected function setUp() 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(); $this->sharedFixture['connection'] = Doctrine_TestUtil::getConnection();
} }
protected function loadConnection($conn, $name)
{
return Doctrine_Manager::connection($conn, $name);
}
protected function tearDown() protected function tearDown()
{} {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment