mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
cbc40d9542
commit
779f990e64
@ -151,25 +151,28 @@ class GatewayFeesCest
|
|||||||
|
|
||||||
// check we correctly remove/add back the gateway fee
|
// check we correctly remove/add back the gateway fee
|
||||||
$I->amOnPage('/payment/' . $invitationKey . '/credit_card');
|
$I->amOnPage('/payment/' . $invitationKey . '/credit_card');
|
||||||
|
$I->wait(3);
|
||||||
$I->seeInDatabase('invoices', [
|
$I->seeInDatabase('invoices', [
|
||||||
'id' => $invoiceId,
|
'id' => $invoiceId,
|
||||||
'amount' => ($amount + $fee),
|
'amount' => ($amount + $fee),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$I->amOnPage('/payment/' . $invitationKey . '/bank_transfer');
|
$I->amOnPage('/payment/' . $invitationKey . '/bank_transfer');
|
||||||
|
$I->wait(3);
|
||||||
$I->seeInDatabase('invoices', [
|
$I->seeInDatabase('invoices', [
|
||||||
'id' => $invoiceId,
|
'id' => $invoiceId,
|
||||||
'amount' => ($amount + $fee * 2),
|
'amount' => ($amount + $fee * 2),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$I->amOnPage('/view/' . $invitationKey);
|
$I->amOnPage('/view/' . $invitationKey);
|
||||||
|
$I->wait(3);
|
||||||
$I->seeInDatabase('invoices', [
|
$I->seeInDatabase('invoices', [
|
||||||
'id' => $invoiceId,
|
'id' => $invoiceId,
|
||||||
'amount' => ($amount + $fee * 2),
|
'amount' => ($amount + $fee * 2),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$I->createOnlinePayment($I, $invitationKey);
|
$I->createOnlinePayment($I, $invitationKey);
|
||||||
|
$I->wait(3);
|
||||||
$I->seeInDatabase('invoices', [
|
$I->seeInDatabase('invoices', [
|
||||||
'id' => $invoiceId,
|
'id' => $invoiceId,
|
||||||
'amount' => ($amount + $fee),
|
'amount' => ($amount + $fee),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user