From e18ecf5e986241f5794c048331ca90744842bc82 Mon Sep 17 00:00:00 2001 From: Brayan Cruces Date: Mon, 5 Sep 2016 15:05:33 -0500 Subject: [PATCH] Add CrearCargoTest --- tests/CrearCargo.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/CrearCargo.php b/tests/CrearCargo.php index 43fc9ca..a4269de 100644 --- a/tests/CrearCargo.php +++ b/tests/CrearCargo.php @@ -1,9 +1,9 @@ createToken(); + $charge = $this->culqi->Charges->create(array( + "amount" => 1000, + "email" => "test-php@example.org", + "token" => $token + )); + $response = $this->culqi->Cargos->get($charge->uid); + $this->assertEquals($response->uid, $charge->uid); + }