From 1f6c5fbc87d12f9353bdbcf4022d158a7a8f49af Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Fri, 27 May 2011 01:47:22 -0430 Subject: [PATCH] Removing dead code --- lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php b/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php index 551e7452a..428244892 100644 --- a/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php +++ b/lib/Cake/Test/Case/TestSuite/CakeTestFixtureTest.php @@ -356,10 +356,7 @@ class CakeTestFixtureTest extends CakeTestCase { * @return void */ function testImportWithRecords() { - - $defaultDb = ConnectionManager::getDataSource('default'); $testSuiteDb = ConnectionManager::getDataSource('test'); - $defaultConfig = $defaultDb->config; $testSuiteConfig = $testSuiteDb->config; ConnectionManager::create('new_test_suite', array_merge($testSuiteConfig, array('prefix' => 'new_' . $testSuiteConfig['prefix']))); $newTestSuiteDb = ConnectionManager::getDataSource('new_test_suite'); @@ -368,7 +365,6 @@ class CakeTestFixtureTest extends CakeTestCase { $Source->create($newTestSuiteDb); $Source->insert($newTestSuiteDb); - $defaultDb->config = $newTestSuiteDb->config; $Fixture = new CakeTestFixtureDefaultImportFixture(); $Fixture->fields = $Fixture->records = null; @@ -380,8 +376,6 @@ class CakeTestFixtureTest extends CakeTestCase { $this->assertFalse(empty($Fixture->records[0]), 'No records loaded on importing fixture.'); $this->assertTrue(isset($Fixture->records[0]['name']), 'No name loaded for first record'); - $defaultDb->config = $defaultConfig; - $Source->drop($newTestSuiteDb); }