/** * Testing notifyPaymentFail */ public function testNotifyPaymentOrderFail() { $this->eventDispatcher->expects($this->once())->method('dispatch')->with($this->equalTo(PaymentCoreEvents::PAYMENT_ORDER_FAIL), $this->isInstanceOf('PaymentSuite\\PaymentCoreBundle\\Event\\PaymentOrderFailEvent')); $paymentEventDispatcher = new PaymentEventDispatcher($this->eventDispatcher); $paymentEventDispatcher->notifyPaymentOrderFail($this->paymentBridge, $this->paymentMethod); }