mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix tests
This commit is contained in:
parent
0938bbedaf
commit
f0175709d2
@ -142,7 +142,7 @@ class GatewayFeesCest
|
|||||||
$I->click('#modalSave');
|
$I->click('#modalSave');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createInvoice($I, $clientEmail, $productKey, $amount, $fee, $partial = false)
|
private function createInvoice($I, $clientName, $productKey, $amount, $fee, $partial = false)
|
||||||
{
|
{
|
||||||
$I->fillInvoice($I, $clientEmail, $productKey);
|
$I->fillInvoice($I, $clientEmail, $productKey);
|
||||||
$invoiceNumber = $I->grabAttributeFrom('#invoice_number', 'value');
|
$invoiceNumber = $I->grabAttributeFrom('#invoice_number', 'value');
|
||||||
@ -153,9 +153,10 @@ class GatewayFeesCest
|
|||||||
}
|
}
|
||||||
|
|
||||||
$I->click('Mark Sent');
|
$I->click('Mark Sent');
|
||||||
$I->see($clientEmail);
|
$I->see($clientName);
|
||||||
|
|
||||||
$clientId = $I->grabFromDatabase('contacts', 'client_id', ['email' => $clientEmail]);
|
//$clientId = $I->grabFromDatabase('contacts', 'client_id', ['email' => $clientEmail]);
|
||||||
|
$clientId = $I->grabFromDatabase('clients', 'id', ['name' => $clientName]);
|
||||||
$invoiceId = $I->grabFromDatabase('invoices', 'id', ['client_id' => $clientId, 'invoice_number' => $invoiceNumber]);
|
$invoiceId = $I->grabFromDatabase('invoices', 'id', ['client_id' => $clientId, 'invoice_number' => $invoiceNumber]);
|
||||||
$invitationKey = $I->grabFromDatabase('invitations', 'invitation_key', ['invoice_id' => $invoiceId]);
|
$invitationKey = $I->grabFromDatabase('invitations', 'invitation_key', ['invoice_id' => $invoiceId]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user