/**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->pluginDefinition['label'] = $this->randomMachineName();
     $this->moduleHandler = $this->getMock(ModuleHandlerInterface::class);
     $this->sut = $this->getMockBuilder(PaymentMethodBase::class)->setConstructorArgs([[], '', $this->pluginDefinition, $this->moduleHandler, $this->eventDispatcher, $this->token, $this->paymentStatusManager])->getMockForAbstractClass();
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     parent::setUp();
     $this->pluginDefinition += array('entity_id' => $this->randomMachineName(), 'execute_status_id' => $this->randomMachineName(), 'capture' => TRUE, 'capture_status_id' => $this->randomMachineName(), 'refund' => TRUE, 'refund_status_id' => $this->randomMachineName());
     $this->moduleHandler = $this->getMock(ModuleHandlerInterface::class);
     $this->paymentStatusManager = $this->getMock(PaymentStatusManagerInterface::class);
     $this->sut = new Basic([], '', $this->pluginDefinition, $this->moduleHandler, $this->eventDispatcher, $this->token, $this->paymentStatusManager);
 }