Skip to content

Commit 2a29910

Browse files
committed
fix tests
1 parent 8246557 commit 2a29910

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/AppTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ public function testPurchase()
2323
$response = $this->gateway
2424
->purchase(
2525
[
26-
'amount' => '12.00',
27-
'description' => 'Test purchase',
28-
'transactionId' => 1,
29-
]
26+
'amount' => '12.00',
27+
'description' => 'Test purchase',
28+
'transactionId' => 1,
29+
]
3030
)->send();
3131

3232
$responseHttp = $this->postJson($response->getRedirectUrl(), [
3333
'transaction_id' => $response->getData()['transaction_id'],
3434
'amount' => $response->getData()['amount'],
3535
'description' => $response->getData()['description'],
3636
])->assertStatus(200)
37-
->assertSee('<form action="POST" action="/process/payment">', false);
37+
->assertSee('<form method="POST" action="/process/payment">', false);
3838
}
3939

4040
public function testCompletePurchase()
@@ -48,7 +48,7 @@ public function testCompletePurchase()
4848
'notify_url' => 'http://localhost:8080/gateway/notify',
4949
'status' => App::STATUS_SUCCESS,
5050
])->assertStatus(302)
51-
->assertRedirect($this->gateway->getUrlReturn());
51+
->assertRedirect($this->gateway->getUrlReturn());
5252

5353
Http::assertSent(function ($request) {
5454
return $request->url() === $this->gateway->getUrlNotify();

0 commit comments

Comments
 (0)