From e349ea9c9c855ee6ec953dcb8599be3f99a487d1 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 13 Jan 2010 05:49:41 +0000 Subject: #616650 by Crell: Default MySQL to transactions ON. Makes sense now that we default to InnoDB as well. --- modules/simpletest/tests/database_test.test | 43 ----------------------------- 1 file changed, 43 deletions(-) (limited to 'modules/simpletest/tests/database_test.test') diff --git a/modules/simpletest/tests/database_test.test b/modules/simpletest/tests/database_test.test index 4af00e69f..19ecbe6e9 100644 --- a/modules/simpletest/tests/database_test.test +++ b/modules/simpletest/tests/database_test.test @@ -2907,49 +2907,6 @@ class DatabaseTransactionTestCase extends DatabaseTestCase { } } - /** - * Test that a database that claims to support transactions will return a transaction object. - * - * If the active connection does not support transactions, this test does nothing. - */ - function testTransactionsSupported() { - try { - $connection = Database::getConnection(); - if ($connection->supportsTransactions()) { - - // Start a "required" transaction. This should fail if we do - // this on a database that does not actually support transactions. - $txn = db_transaction(TRUE); - } - $this->pass('Transaction started successfully.'); - } - catch (TransactionsNotSupportedException $e) { - $this->fail("Exception thrown when it shouldn't have been."); - } - } - - /** - * Test that a database that doesn't support transactions fails correctly. - * - * If the active connection supports transactions, this test does nothing. - */ - function testTransactionsNotSupported() { - try { - $connection = Database::getConnection(); - if (!$connection->supportsTransactions()) { - - // Start a "required" transaction. This should fail if we do this - // on a database that does not actually support transactions, and - // the current database does claim to NOT support transactions. - $txn = db_transaction(TRUE); - $this->fail('No transaction failure registered.'); - } - } - catch (TransactionsNotSupportedException $e) { - $this->pass('Exception thrown for unsupported transactions.'); - } - } - /** * Test transaction rollback on a database that supports transactions. * -- cgit v1.2.3