Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kleff committed Feb 4, 2016
1 parent 70aff64 commit f2a3533
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Tests/Action/PaymentDetailsStatusActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,4 +407,22 @@ public function shouldMarkUnknownIfPaymentStatusUnknown()

$this->assertTrue($request->isUnknown());
}


/**
* @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());
}
}

0 comments on commit f2a3533

Please sign in to comment.