Skip to content

Commit

Permalink
Merge pull request #1 from rizdaprasetya/travis-check
Browse files Browse the repository at this point in the history
fix testRealConnect issue caused by unexpected API response if key empty
  • Loading branch information
Zaki Ibrahim authored Jul 20, 2020
2 parents 50d4bd8 + 0356795 commit f1d37be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/MidtransCoreApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ public function testCharge()
$this->assertTrue(in_array('X-Override-Notification: https://example.com', $fields["HTTPHEADER"]));
}

public function testRealConnect()
public function testRealConnectWithInvalidKey()
{
Config::$serverKey = 'invalid-server-key';
$params = array(
'transaction_details' => array(
'order_id' => rand(),
Expand Down

0 comments on commit f1d37be

Please sign in to comment.