We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b6f39b commit 9e7d3dcCopy full SHA for 9e7d3dc
Tests/Action/StatusActionTest.php
@@ -137,7 +137,24 @@ public function shouldMarkCapturedIfStatusSetToCaptured()
137
138
$this->assertTrue($request->isCaptured());
139
}
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();
150
151
+ $action = new StatusAction();
152
153
+ $action->execute($request);
154
155
+ $this->assertTrue($request->isCanceled());
156
+ }
157
158
/**
159
* @test
160
*/
0 commit comments