From 9b52ad39e9afa470d2f0da41fefd128cc3767596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 4 Oct 2021 13:44:57 +0200 Subject: [PATCH] Tests: Paying without method preauthorized --- .../ClientPortal/Gateways/GoCardless/ACHTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/GoCardless/ACHTest.php b/tests/Browser/ClientPortal/Gateways/GoCardless/ACHTest.php index 9de9e9736bff..5867f8329f35 100644 --- a/tests/Browser/ClientPortal/Gateways/GoCardless/ACHTest.php +++ b/tests/Browser/ClientPortal/Gateways/GoCardless/ACHTest.php @@ -27,4 +27,16 @@ class ACHTest extends DuskTestCase ->auth(); }); } + + public function testPayingWithNoPreauthorizedIsntPossible() + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.invoices.index') + ->click('@pay-now') + ->press('Pay Now') + ->clickLink('Bank Transfer') + ->assertSee('To pay with a bank account, first you have to add it as payment method.'); + }); + } }