Skip to content

Commit

Permalink
Add new architecture test for Flutterwave payment handler
Browse files Browse the repository at this point in the history
  • Loading branch information
damms005 committed Oct 25, 2024
1 parent 75f2b3f commit 210a98a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Services/PaymentHandlers/Flutterwave.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ protected function sendUserToPaymentGateway(string $redirect_or_callback_url, Pa
$payment->save();

header('Location: ' . $url);

exit;
}

public function confirmResponseCanBeHandledAndUpdateDatabaseWithTransactionOutcome(Request $paymentGatewayServerResponse): ?Payment
Expand Down
11 changes: 11 additions & 0 deletions tests/ArchitectureTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

describe('architecture tests', function () {
arch()
->expect('Damms005\LaravelMultipay')
->not->toUse(['die', 'dd', 'dump']);

arch()->preset()->php();
arch()->preset()->laravel()->ignoring('Damms005\LaravelMultipay\LaravelMultipayServiceProvider');
arch()->preset()->security()->ignoring('md5');
});

0 comments on commit 210a98a

Please sign in to comment.