Skip to content

Commit

Permalink
[offline] add canceled status
Browse files Browse the repository at this point in the history
  • Loading branch information
michallkanak committed Jan 14, 2016
1 parent 6b6f39b commit 9e7d3dc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Tests/Action/StatusActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,24 @@ public function shouldMarkCapturedIfStatusSetToCaptured()

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

/**
* @test
*/
public function shouldMarkCanceledIfStatusSetToCanceled()
{
$request = new GetBinaryStatus(array(
Constants::FIELD_STATUS => Constants::STATUS_CANCELED,
));
$request->markCanceled();

$action = new StatusAction();

$action->execute($request);

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

/**
* @test
*/
Expand Down

0 comments on commit 9e7d3dc

Please sign in to comment.