Skip to content

Commit 9e7d3dc

Browse files
committed
[offline] add canceled status
1 parent 6b6f39b commit 9e7d3dc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Tests/Action/StatusActionTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,24 @@ public function shouldMarkCapturedIfStatusSetToCaptured()
137137

138138
$this->assertTrue($request->isCaptured());
139139
}
140+
141+
/**
142+
* @test
143+
*/
144+
public function shouldMarkCanceledIfStatusSetToCanceled()
145+
{
146+
$request = new GetBinaryStatus(array(
147+
Constants::FIELD_STATUS => Constants::STATUS_CANCELED,
148+
));
149+
$request->markCanceled();
140150

151+
$action = new StatusAction();
152+
153+
$action->execute($request);
154+
155+
$this->assertTrue($request->isCanceled());
156+
}
157+
141158
/**
142159
* @test
143160
*/

0 commit comments

Comments
 (0)