mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Data seeding: Authorize.net
This commit is contained in:
parent
9178a70fed
commit
23fd2abecb
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
namespace Tests\Browser\ClientPortal\Gateways\AuthorizeNet;
|
namespace Tests\Browser\ClientPortal\Gateways\AuthorizeNet;
|
||||||
|
|
||||||
|
use App\Models\CompanyGateway;
|
||||||
use Laravel\Dusk\Browser;
|
use Laravel\Dusk\Browser;
|
||||||
use Tests\Browser\Pages\ClientPortal\Login;
|
use Tests\Browser\Pages\ClientPortal\Login;
|
||||||
use Tests\DuskTestCase;
|
use Tests\DuskTestCase;
|
||||||
@ -35,6 +36,10 @@ class CreditCardTest extends DuskTestCase
|
|||||||
->visit(new Login())
|
->visit(new Login())
|
||||||
->auth();
|
->auth();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$this->disableCompanyGateways();
|
||||||
|
|
||||||
|
CompanyGateway::where('gateway_key', '3b6621f970ab18887c4f6dca78d3f8bb')->restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testPayWithNewCard()
|
public function testPayWithNewCard()
|
||||||
@ -56,6 +61,8 @@ class CreditCardTest extends DuskTestCase
|
|||||||
|
|
||||||
public function testPayWithNewCardAndSaveForFutureUse()
|
public function testPayWithNewCardAndSaveForFutureUse()
|
||||||
{
|
{
|
||||||
|
$this->assertTrue(false);
|
||||||
|
|
||||||
$this->browse(function (Browser $browser) {
|
$this->browse(function (Browser $browser) {
|
||||||
$browser
|
$browser
|
||||||
->visitRoute('client.invoices.index')
|
->visitRoute('client.invoices.index')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user