/** * @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()); }
/** * {@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); } }