Ejemplo n.º 1
0
 /**
  * @covers \Magento\Sales\Model\Order\Payment::getShouldCloseParentTransaction()
  * @return void
  */
 public function testGetShouldCloseParentTransaction()
 {
     $this->payment->setShouldCloseParentTransaction(1);
     static::assertTrue($this->payment->getShouldCloseParentTransaction());
     $this->payment->setShouldCloseParentTransaction(0);
     static::assertFalse($this->payment->getShouldCloseParentTransaction());
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function setShouldCloseParentTransaction($flag)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setShouldCloseParentTransaction');
     if (!$pluginInfo) {
         return parent::setShouldCloseParentTransaction($flag);
     } else {
         return $this->___callPlugins('setShouldCloseParentTransaction', func_get_args(), $pluginInfo);
     }
 }