diff --git a/tests/TransactionTest.php b/tests/TransactionTest.php index a77c0c31e..5a9d716fe 100644 --- a/tests/TransactionTest.php +++ b/tests/TransactionTest.php @@ -68,10 +68,8 @@ class TransactionTest extends SapphireTest { DB::getConn()->transactionRollback(); } - $success=DataObject::get('Page', "\"Title\"='Read only success'"); - DB::getConn()->endTransaction(); - + $success=DataObject::get('Page', "\"Title\"='Read only success'"); $fail=DataObject::get('Page', "\"Title\"='Read only failed'"); //This page should be in the system