BUGFIX: get a object inside transaction block will alway exist (from r101592)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112004 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-13 00:49:57 +00:00
parent df0e553eee
commit 472dbf3e32

View File

@ -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