Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Adds void transaction test
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 20, 2016
1 parent 7e2ebb0 commit c6d524f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/GatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit c6d524f

Please sign in to comment.