File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,18 @@ public function testPurchase()
23
23
$ response = $ this ->gateway
24
24
->purchase (
25
25
[
26
- 'amount ' => '12.00 ' ,
27
- 'description ' => 'Test purchase ' ,
28
- 'transactionId ' => 1 ,
29
- ]
26
+ 'amount ' => '12.00 ' ,
27
+ 'description ' => 'Test purchase ' ,
28
+ 'transactionId ' => 1 ,
29
+ ]
30
30
)->send ();
31
31
32
32
$ responseHttp = $ this ->postJson ($ response ->getRedirectUrl (), [
33
33
'transaction_id ' => $ response ->getData ()['transaction_id ' ],
34
34
'amount ' => $ response ->getData ()['amount ' ],
35
35
'description ' => $ response ->getData ()['description ' ],
36
36
])->assertStatus (200 )
37
- ->assertSee ('<form action ="POST" action="/process/payment"> ' , false );
37
+ ->assertSee ('<form method ="POST" action="/process/payment"> ' , false );
38
38
}
39
39
40
40
public function testCompletePurchase ()
@@ -48,7 +48,7 @@ public function testCompletePurchase()
48
48
'notify_url ' => 'http://localhost:8080/gateway/notify ' ,
49
49
'status ' => App::STATUS_SUCCESS ,
50
50
])->assertStatus (302 )
51
- ->assertRedirect ($ this ->gateway ->getUrlReturn ());
51
+ ->assertRedirect ($ this ->gateway ->getUrlReturn ());
52
52
53
53
Http::assertSent (function ($ request ) {
54
54
return $ request ->url () === $ this ->gateway ->getUrlNotify ();
You can’t perform that action at this time.
0 commit comments