Payum\Paypal\Rest\Action\CaptureAction::supports PHP Method

supports() public method

{@inheritDoc}
public supports ( $request )
    public function supports($request)
    {
        return $request instanceof Capture && $request->getModel() instanceof PaypalPayment;
    }

Usage Example

Beispiel #1
0
 /**
  * @test
  */
 public function shouldSupportCapture()
 {
     $action = new CaptureAction();
     $request = new Capture($this->getMock(PaypalPayment::class));
     $this->assertTrue($action->supports($request));
 }
All Usage Examples Of Payum\Paypal\Rest\Action\CaptureAction::supports