BUGFIX: get a object inside transaction block will alway exist

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101592 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2010-03-24 01:59:42 +00:00 committed by Sam Minnee
parent 3dfeb93a78
commit b73ffd5f47

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