diff --git a/tests/GatewayTest.php b/tests/GatewayTest.php index 373944b..aee22ad 100644 --- a/tests/GatewayTest.php +++ b/tests/GatewayTest.php @@ -84,4 +84,14 @@ public function it_can_verify_a_card_before_attempting_a_purchase_and_receive_a_ $this->assertEquals(Response::class, get_class($response)); $this->assertTrue($response->successful); } + + /** @test */ + public function it_can_void_a_transaction_after_making_a_purchase_and_receive_a_response() + { + $response = $this->gateway->purchase($this->params); + $response = $this->gateway->void($response->transaction); + + $this->assertEquals(Response::class, get_class($response)); + $this->assertTrue($response->successful); + } } \ No newline at end of file