diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:49:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-13 05:49:41 +0000 |
commit | e349ea9c9c855ee6ec953dcb8599be3f99a487d1 (patch) | |
tree | 1f8b73c8d3f835e51eeb08b4060284d2de82ad19 /modules/simpletest/tests/database_test.test | |
parent | a75ff119fa98747a712339feb8c43a7fbe7d6bcb (diff) | |
download | brdo-e349ea9c9c855ee6ec953dcb8599be3f99a487d1.tar.gz brdo-e349ea9c9c855ee6ec953dcb8599be3f99a487d1.tar.bz2 |
#616650 by Crell: Default MySQL to transactions ON. Makes sense now that we default to InnoDB as well.
Diffstat (limited to 'modules/simpletest/tests/database_test.test')
-rw-r--r-- | modules/simpletest/tests/database_test.test | 43 |
1 files changed, 0 insertions, 43 deletions
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 @@ -2908,49 +2908,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. * * If the active connection does not support transactions, this test does nothing. |