예제 #1
0
 /**
  * @test
  */
 public function shouldNotAddNotifyUrlIfCaptureTokenNotSet()
 {
     $details = new \ArrayObject();
     $tokenFactoryMock = $this->getMock(GenericTokenFactoryInterface::class);
     $tokenFactoryMock->expects($this->never())->method('createNotifyToken');
     $action = new CaptureAction();
     $action->setGateway($this->createGatewayMock());
     $action->setGenericTokenFactory($tokenFactoryMock);
     $action->execute(new Capture($details));
     $this->assertNotEmpty($details);
     $this->assertArrayNotHasKey('PAYMENTREQUEST_0_NOTIFYURL', $details);
 }