Example #1
0
 protected function trainPaymentMethod(PaymentMethodInterface $pm)
 {
     $pm->getId()->willReturn('spec');
     $pm->getName()->willReturn(DiscoverySpec::PM_NAME);
 }
Example #2
0
 public function addMethod(PaymentMethodInterface $method)
 {
     $this->availableMethods[$method->getId()] = $this->getTranslator()->trans($method->getName());
     $this->methods[$method->getId()] = $method;
     return $this;
 }