diff --git a/tests/MidtransCoreApiTest.php b/tests/MidtransCoreApiTest.php index b3c94f9..7417ca9 100644 --- a/tests/MidtransCoreApiTest.php +++ b/tests/MidtransCoreApiTest.php @@ -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(),