Skip to content

Commit 4b38104

Browse files
committed
Update AuthorizeNetCIM_Test.php
Added Test for Community Issue - Error when Zero CIM profiles
1 parent 0c78173 commit 4b38104

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/AuthorizeNetCIM_Test.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,13 @@ public function testAll()
374374

375375
public function testGetCustomerProfileIds()
376376
{
377+
// A valid response should be received when a merchant has zero customer profiles...
378+
// Hence, first testing using specific credentials for a merchant which has zero customer profiles...
379+
$request = new AuthorizeNetCIM('3qkNY3db6jB','7s8B76QvsPet82HH');
380+
$response = $request->getCustomerProfileIds();
381+
$this->assertTrue($response->isOk());
382+
$this->assertTrue(empty($response->getCustomerProfileIds()));
383+
377384
// Create new customer profile
378385
$request = new AuthorizeNetCIM;
379386
$customerProfile = new AuthorizeNetCustomer;

0 commit comments

Comments
 (0)