execute() public method

{@inheritDoc}
public execute ( Payum\Core\Request\GetStatusInterface $request )
$request Payum\Core\Request\GetStatusInterface
 /**
  * @test
  */
 public function shouldMarkCanceledIfPaymentIsCancelledByUser()
 {
     $action = new PaymentDetailsStatusAction();
     $request = new GetHumanStatus(array('CHECKOUTSTATUS' => Api::CHECKOUTSTATUS_PAYMENT_ACTION_NOT_INITIATED, 'CANCELLED' => true));
     $action->execute($request);
     $this->assertTrue($request->isCanceled());
 }
 /**
  * @test
  */
 public function shouldMarkUnknownIfPaymentStatusUnknown()
 {
     $action = new PaymentDetailsStatusAction();
     $request = new GetHumanStatus(array('PAYMENTREQUEST_0_AMT' => 12, 'CHECKOUTSTATUS' => Api::CHECKOUTSTATUS_PAYMENT_COMPLETED, 'PAYMENTREQUEST_9_PAYMENTSTATUS' => 'unknownPaymentStatus'));
     $action->execute($request);
     $this->assertTrue($request->isUnknown());
 }