Skip to content

Commit

Permalink
Add CrearCargoTest
Browse files Browse the repository at this point in the history
  • Loading branch information
brayancruces committed Sep 5, 2016
1 parent 6a7169e commit e18ecf5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/CrearCargo.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php require_once dirname(__FILE__).'/TestAutoload.php';


/**
* Clase CrearCargos (Test)
*/
class CrearCargos extends PHPUnit_Framework_TestCase
{

protected function setUp() {
Expand Down Expand Up @@ -65,6 +65,16 @@ public function testCrearCargo(){
}


public function testGetCargo(){
$token = $this->createToken();
$charge = $this->culqi->Charges->create(array(
"amount" => 1000,
"email" => "[email protected]",
"token" => $token
));
$response = $this->culqi->Cargos->get($charge->uid);
$this->assertEquals($response->uid, $charge->uid);
}



Expand Down

0 comments on commit e18ecf5

Please sign in to comment.