Skip to content

Commit

Permalink
update buyers test
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipgr4vy committed Aug 6, 2024
1 parent 3e084f4 commit 7326390
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/Api/BuyersApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,14 @@ public function testUpdateBuyer()
try {
$config = new Gr4vyConfig(self::$gr4vyId, self::$privateKeyLocation);

$buyer_request = array("external_identifier"=>"testAddBuyer3","display_name"=>"abc");
$buyer_request = array("external_identifier"=>"testAddBuyer6","display_name"=>"abc");
$result = $config->addBuyer($buyer_request);

$buyer_update = array("external_identifier"=>"testUpdateBuyer");
print_r($result);
$buyer_update = array("external_identifier"=>"testUpdateBuyer6");
$result = $config->updateBuyer($result["id"], $buyer_update);
print_r($result);
$this->assertArrayHasKey("id", $result);
$this->assertEquals($result["external_identifier"], "testUpdateBuyer");
$this->assertEquals($result["external_identifier"], "testUpdateBuyer6");

$result = $config->deleteBuyer($result["id"]);
$this->assertArrayHasKey("success", $result);
Expand Down

0 comments on commit 7326390

Please sign in to comment.