Skip to content

Commit 5a01584

Browse files
author
brianmc
committed
updated some bad test data
1 parent 2d6a7de commit 5a01584

2 files changed

Lines changed: 27 additions & 27 deletions

File tree

tests/AuthorizeNetAIM_Test.php

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function testAuthCapture()
1010
array(
1111
'amount' => rand(1, 1000),
1212
'card_num' => '4111111111111111',
13-
'exp_date' => '0415'
13+
'exp_date' => '1220'
1414
)
1515
);
1616
$response = $sale->authorizeAndCapture();
@@ -24,7 +24,7 @@ public function testAuthCaptureSingleDigitMonth()
2424
array(
2525
'amount' => rand(1, 1000),
2626
'card_num' => '4111111111111111',
27-
'exp_date' => '415'
27+
'exp_date' => '420'
2828
)
2929
);
3030
$response = $sale->authorizeAndCapture();
@@ -38,7 +38,7 @@ public function testAuthCaptureSingleDigitMonthWithSlash()
3838
array(
3939
'amount' => rand(1, 1000),
4040
'card_num' => '4111111111111111',
41-
'exp_date' => '4/15'
41+
'exp_date' => '4/20'
4242
)
4343
);
4444
$response = $sale->authorizeAndCapture();
@@ -52,7 +52,7 @@ public function testAuthCaptureTwoDigitMonthWithSlash()
5252
array(
5353
'amount' => rand(1, 1000),
5454
'card_num' => '4111111111111111',
55-
'exp_date' => '04/15'
55+
'exp_date' => '04/20'
5656
)
5757
);
5858
$response = $sale->authorizeAndCapture();
@@ -64,7 +64,7 @@ public function testAuthCaptureAlternate()
6464
$sale = new AuthorizeNetAIM;
6565
$sale->amount = rand(1, 10000);
6666
$sale->card_num = '6011000000000012';
67-
$sale->exp_date = '04/15';
67+
$sale->exp_date = '04/20';
6868
$response = $sale->authorizeAndCapture();
6969
$this->assertTrue($response->approved);
7070
}
@@ -85,7 +85,7 @@ public function testAuthCapturePartial()
8585
$sale->amount = $amount;
8686
$sale->card_num = '4222222222222';
8787
$sale->zip = "46225";
88-
$sale->exp_date = '04/15';
88+
$sale->exp_date = '04/20';
8989
$sale->allow_partial_auth = true;
9090
$response = $sale->authorizeAndCapture();
9191
$this->assertTrue($response->held);
@@ -111,7 +111,7 @@ public function testAuthCaptureShortNoVerify()
111111
$this->markTestSkipped('Ignoring for Travis. Will fix after release.'); //TODO
112112
$sale = new AuthorizeNetAIM;
113113
$sale->VERIFY_PEER = false;
114-
$response = $sale->authorizeAndCapture(rand(1, 100), '6011000000000012', '04/19');
114+
$response = $sale->authorizeAndCapture(rand(1, 100), '6011000000000012', '04/20');
115115
$this->assertTrue($response->approved);
116116
}
117117

@@ -180,7 +180,7 @@ public function testAimResponseFields()
180180

181181
$sale = new AuthorizeNetAIM;
182182
$sale->card_num = '4111111111111111';
183-
$sale->exp_date = '04/16';
183+
$sale->exp_date = '04/20';
184184
$sale->amount = $amount = rand(1,99);
185185
$sale->description = $description = "Sale description";
186186
$sale->first_name = $first_name = "Jane";
@@ -274,7 +274,7 @@ public function testVoid()
274274
array(
275275
'amount' => $amount,
276276
'card_num' => '6011000000000012',
277-
'exp_date' => '0415'
277+
'exp_date' => '0420'
278278
)
279279
);
280280
$response = $sale->authorizeAndCapture();
@@ -297,7 +297,7 @@ public function testVoidShort()
297297
// First create transaction to void.
298298
$amount = rand(1, 1000);
299299
$card_num = '6011000000000012';
300-
$exp_date = '0415';
300+
$exp_date = '0420';
301301
$sale = new AuthorizeNetAIM;
302302
$response = $sale->authorizeAndCapture($amount, $card_num, $exp_date);
303303
$this->assertTrue($response->approved);
@@ -332,21 +332,21 @@ public function testAuthCaptureECheckSandbox()
332332
public function testAmex()
333333
{
334334
$sale = new AuthorizeNetAIM;
335-
$response = $sale->authorizeAndCapture(rand(1, 100), '370000000000002', '04/16');
335+
$response = $sale->authorizeAndCapture(rand(1, 100), '370000000000002', '04/20');
336336
$this->assertTrue($response->approved);
337337
}
338338

339339
public function testDiscover()
340340
{
341341
$sale = new AuthorizeNetAIM;
342-
$response = $sale->authorizeAndCapture(rand(1, 100), '6011000000000012', '04/16');
342+
$response = $sale->authorizeAndCapture(rand(1, 100), '6011000000000012', '04/20');
343343
$this->assertTrue($response->approved);
344344
}
345345

346346
public function testVisa()
347347
{
348348
$sale = new AuthorizeNetAIM;
349-
$response = $sale->authorizeAndCapture(rand(1, 100), '4012888818888', '04/16');
349+
$response = $sale->authorizeAndCapture(rand(1, 100), '4012888818888', '04/20');
350350
$this->assertTrue($response->approved);
351351
}
352352

@@ -373,7 +373,7 @@ public function testAuthOnly()
373373
array(
374374
'amount' => rand(1, 1000),
375375
'card_num' => '6011000000000012',
376-
'exp_date' => '0415'
376+
'exp_date' => '0420'
377377
)
378378
);
379379
$response = $auth->authorizeOnly();
@@ -388,7 +388,7 @@ public function testAuthCaptureVoid()
388388
array(
389389
'amount' => $amount,
390390
'card_num' => '6011000000000012',
391-
'exp_date' => '0415'
391+
'exp_date' => '0420'
392392
)
393393
);
394394
$auth_response = $auth->authorizeOnly();
@@ -400,7 +400,7 @@ public function testAuthCaptureVoid()
400400
array(
401401
'amount' => $amount,
402402
'card_num' => '6011000000000012',
403-
'exp_date' => '0415',
403+
'exp_date' => '0420',
404404
'trans_id' => $auth_response->transaction_id,
405405
)
406406
);
@@ -485,7 +485,7 @@ public function testAuthCaptureCustomFields()
485485
array(
486486
'amount' => rand(1, 1000),
487487
'card_num' => '6011000000000012',
488-
'exp_date' => '0415'
488+
'exp_date' => '0420'
489489
)
490490
);
491491
$sale->setCustomField("foo", "bar");
@@ -510,7 +510,7 @@ public function testEncapCharacter()
510510
array(
511511
'amount' => $amount,
512512
'card_num' => '6011000000000012',
513-
'exp_date' => '0415',
513+
'exp_date' => '0420',
514514
'encap_char' => '$',
515515
'description' => $description,
516516
)
@@ -528,7 +528,7 @@ public function testAuthCaptureSetMultipleCustomFields()
528528
array(
529529
'amount' => rand(1, 1000),
530530
'card_num' => '6011000000000012',
531-
'exp_date' => '0415'
531+
'exp_date' => '0420'
532532
)
533533
);
534534
$sale->setCustomFields(array("foo" => "bar", "foo2" => "bar2"));
@@ -554,7 +554,7 @@ public function testInvalidCreditCard()
554554
array(
555555
'amount' => rand(1, 1000),
556556
'card_num' => '123',
557-
'exp_date' => '0415'
557+
'exp_date' => '0420'
558558
)
559559
);
560560
$response = $sale->authorizeAndCapture();
@@ -731,7 +731,7 @@ public function testResponseMethods()
731731
array(
732732
'amount' => $amount,
733733
'card_num' => '6011000000000012',
734-
'exp_date' => '0415',
734+
'exp_date' => '0420',
735735
'zip' => $zipcode,
736736
)
737737
);
@@ -760,7 +760,7 @@ public function testSetBadField()
760760
array(
761761
'amount' => $amount,
762762
'card_num' => '6011000000000012',
763-
'exp_date' => '0415',
763+
'exp_date' => '0420',
764764
'zipcode' => $zipcode, // Should actually be just "zip"
765765
)
766766
);
@@ -840,7 +840,7 @@ public function testAuthCaptureLiveServerTestRequest()
840840
array(
841841
'amount' => rand(1, 1000),
842842
'card_num' => '6011000000000012',
843-
'exp_date' => '0415'
843+
'exp_date' => '0420'
844844
)
845845
);
846846
$sale->setField('test_request', 'TRUE');
@@ -859,7 +859,7 @@ public function testAuthCaptureLiveServer()
859859
array(
860860
'amount' => rand(1, 1000),
861861
'card_num' => '6011000000000012',
862-
'exp_date' => '0415'
862+
'exp_date' => '0420'
863863
)
864864
);
865865
$response = $sale->authorizeAndCapture();
@@ -877,7 +877,7 @@ public function testInvalidCredentials()
877877
array(
878878
'amount' => rand(1, 1000),
879879
'card_num' => '6011000000000012',
880-
'exp_date' => '0415'
880+
'exp_date' => '0420'
881881
)
882882
);
883883
$response = $sale->authorizeAndCapture();

tests/AuthorizeNetCP_Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public function testAuthOnly()
99
array(
1010
'amount' => rand(1, 1000),
1111
'card_num' => '4111111111111111',
12-
'exp_date' => '0415',
12+
'exp_date' => '0420',
1313
'duplicate_window' => '5',
1414
'device_type' => '4',
1515
)
@@ -25,7 +25,7 @@ public function testAuthCapture()
2525
array(
2626
'amount' => rand(1, 1000),
2727
'card_num' => '4111111111111111',
28-
'exp_date' => '0415',
28+
'exp_date' => '0420',
2929
'device_type' => '4',
3030
)
3131
);

0 commit comments

Comments
 (0)