Skip to content

Commit dfdb115

Browse files
author
brianmc
committed
Updated random functions in unit tests
1 parent 06ce2cb commit dfdb115

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/AuthorizeNetAIM_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function testAimResponseFields()
268268
public function testVoid()
269269
{
270270
// First create transaction to void.
271-
$amount = rand(1, 1000);
271+
$amount = rand(1, 100000);
272272
$sale = new AuthorizeNetAIM;
273273
$sale->setFields(
274274
array(

tests/AuthorizeNetCIM_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function testUpdateCustomerPaymentProfile()
154154
$request = new AuthorizeNetCIM;
155155
$customerProfile = new AuthorizeNetCustomer;
156156
$customerProfile->description = "Description of customer";
157-
$customerProfile->merchantCustomerId = time().rand(1,10);
157+
$customerProfile->merchantCustomerId = time().rand(1,100000);
158158
$customerProfile->email = "blahlah@domain.com";
159159
$response = $request->createCustomerProfile($customerProfile);
160160
$this->assertTrue($response->isOk());

0 commit comments

Comments
 (0)