コード例 #1
0
ファイル: MysqlTest.php プロジェクト: nayanchamp/magento2
 /**
  * Test incomplete Roll Back in a nested transaction
  */
 public function testSequentialTransactionsSuccess()
 {
     $this->_adapter->expects($this->exactly(4))->method('_connect');
     $this->_adapter->expects($this->exactly(2))->method('_beginTransaction');
     $this->_adapter->expects($this->once())->method('_rollBack');
     $this->_adapter->expects($this->once())->method('_commit');
     $this->_adapter->beginTransaction();
     $this->_adapter->beginTransaction();
     $this->_adapter->beginTransaction();
     $this->_adapter->rollBack();
     $this->_adapter->rollBack();
     $this->_adapter->rollBack();
     $this->_adapter->beginTransaction();
     $this->_adapter->commit();
 }
コード例 #2
0
ファイル: Db.php プロジェクト: hazaeluz/magento_connect
 /**
  * Rollback transaction
  *
  * @return Mage_Backup_Model_Resource_Db
  */
 public function rollBackTransaction()
 {
     $this->_write->rollBack();
     return $this;
 }
コード例 #3
0
ファイル: Db.php プロジェクト: jpbender/mage_virtual
 public function rollBackTransaction()
 {
     $this->_read->rollBack();
 }