Beispiel #1
0
 /**
  * Get  Payment Method code
  *
  * @return string
  */
 public function getPaymentMethodCode()
 {
     return $this->_paymentMethod->getCode();
 }
Beispiel #2
0
 /**
  * @param DataObject $data
  */
 private function parentAssignDataExpectation(DataObject $data)
 {
     $eventData = [AbstractDataAssignObserver::METHOD_CODE => $this, AbstractDataAssignObserver::MODEL_CODE => $this->_model->getInfoInstance(), AbstractDataAssignObserver::DATA_CODE => $data];
     $this->eventManagerMock->expects(static::exactly(2))->method('dispatch')->willReturnMap([['payment_method_assign_data_' . $this->_model->getCode(), $eventData], ['payment_method_assign_data', $eventData]]);
 }