mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: transaction function names fixed
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@115720 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
58b44287d3
commit
05f1fe2316
@ -8,7 +8,7 @@ class TransactionTest extends SapphireTest {
|
||||
function testCreateWithTransaction() {
|
||||
|
||||
if(DB::getConn()->supportsTransactions()==true){
|
||||
DB::getConn()->startTransaction();
|
||||
DB::getConn()->transactionStart();
|
||||
$page=new Page();
|
||||
$page->Title='First page';
|
||||
$page->write();
|
||||
@ -31,7 +31,7 @@ class TransactionTest extends SapphireTest {
|
||||
//Revert to a savepoint:
|
||||
DB::getConn()->transactionRollback('rollback');
|
||||
|
||||
DB::getConn()->endTransaction();
|
||||
DB::getConn()->transactionEnd();
|
||||
|
||||
$first=DataObject::get('Page', "\"Title\"='First page'");
|
||||
$second=DataObject::get('Page', "\"Title\"='Second page'");
|
||||
@ -56,7 +56,7 @@ class TransactionTest extends SapphireTest {
|
||||
$page->Title='Read only success';
|
||||
$page->write();
|
||||
|
||||
DB::getConn()->startTransaction('READ ONLY');
|
||||
DB::getConn()->transactionStart('READ ONLY');
|
||||
|
||||
try {
|
||||
$page=new Page();
|
||||
@ -68,7 +68,7 @@ class TransactionTest extends SapphireTest {
|
||||
DB::getConn()->transactionRollback();
|
||||
}
|
||||
|
||||
DB::getConn()->endTransaction();
|
||||
DB::getConn()->transactionEnd();
|
||||
$success=DataObject::get('Page', "\"Title\"='Read only success'");
|
||||
$fail=DataObject::get('Page', "\"Title\"='Read only failed'");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user