public function supports($request) { return $request instanceof Capture && $request->getModel() instanceof PaypalPayment; }
/** * @test */ public function shouldSupportCapture() { $action = new CaptureAction(); $request = new Capture($this->getMock(PaypalPayment::class)); $this->assertTrue($action->supports($request)); }