Gateways: Braintree: Credit card: Adding credit card standalone shouldn't be possible
This commit is contained in:
parent
f354da50a1
commit
7b70fadfa3
1 changed files with 11 additions and 0 deletions
|
|
@ -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.');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue