1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Gateways: Braintree: Credit card: Adding credit card standalone shouldn't be possible

This commit is contained in:
Benjamin Beganović 2021-07-09 16:03:53 +02:00
parent f354da50a1
commit 7b70fadfa3

View File

@ -113,4 +113,15 @@ class CreditCardTest extends DuskTestCase
->assertSee('Payment method has been successfully removed.');
});
}
public function testAddingPaymentMethodShouldntBePossible()
{
$this->browse(function (Browser $browser) {
$browser
->visitRoute('client.payment_methods.index')
->press('Add Payment Method')
->clickLink('Credit Card')
->assertSee('This payment method can be can saved for future use, once you complete your first transaction. Don\'t forget to check "Store credit card details" during payment process.');
});
}
}