mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 11:04:41 -04:00
Working on tests
This commit is contained in:
parent
6b7542085a
commit
cc55cdc1b5
@ -10,6 +10,7 @@ class InvoiceRequest extends EntityRequest {
|
|||||||
{
|
{
|
||||||
$invoice = parent::entity();
|
$invoice = parent::entity();
|
||||||
|
|
||||||
|
/*
|
||||||
// support loading an invoice by its invoice number
|
// support loading an invoice by its invoice number
|
||||||
if ($this->invoice_number && ! $invoice) {
|
if ($this->invoice_number && ! $invoice) {
|
||||||
$invoice = Invoice::scope()
|
$invoice = Invoice::scope()
|
||||||
@ -17,6 +18,7 @@ class InvoiceRequest extends EntityRequest {
|
|||||||
->withTrashed()
|
->withTrashed()
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// eager load the invoice items
|
// eager load the invoice items
|
||||||
if ($invoice && ! $invoice->relationLoaded('invoice_items')) {
|
if ($invoice && ! $invoice->relationLoaded('invoice_items')) {
|
||||||
|
@ -68,7 +68,7 @@ class CheckBalanceCest
|
|||||||
$I->see('Paid to Date $' . ($productPrice * 2));
|
$I->see('Paid to Date $' . ($productPrice * 2));
|
||||||
|
|
||||||
// archive the invoice
|
// archive the invoice
|
||||||
$I->amOnPage('/invoices/' . $invoiceId . '/edit');
|
$I->amOnPage('/invoices/' . $invoiceId);
|
||||||
$I->executeJS('submitBulkAction("archive")');
|
$I->executeJS('submitBulkAction("archive")');
|
||||||
$I->wait(1);
|
$I->wait(1);
|
||||||
$I->amOnPage("/clients/{$clientId}");
|
$I->amOnPage("/clients/{$clientId}");
|
||||||
@ -76,7 +76,7 @@ class CheckBalanceCest
|
|||||||
$I->see('Paid to Date $' . ($productPrice * 2));
|
$I->see('Paid to Date $' . ($productPrice * 2));
|
||||||
|
|
||||||
// delete the invoice
|
// delete the invoice
|
||||||
$I->amOnPage('/invoices/' . $invoiceId . '/edit');
|
$I->amOnPage('/invoices/' . $invoiceId);
|
||||||
$I->executeJS('submitBulkAction("delete")');
|
$I->executeJS('submitBulkAction("delete")');
|
||||||
$I->wait(1);
|
$I->wait(1);
|
||||||
$I->amOnPage("/clients/{$clientId}");
|
$I->amOnPage("/clients/{$clientId}");
|
||||||
@ -84,7 +84,7 @@ class CheckBalanceCest
|
|||||||
$I->see('Paid to Date $0.00');
|
$I->see('Paid to Date $0.00');
|
||||||
|
|
||||||
// restore the invoice
|
// restore the invoice
|
||||||
$I->amOnPage('/invoices/' . $invoiceId . '/edit');
|
$I->amOnPage('/invoices/' . $invoiceId);
|
||||||
$I->executeJS('submitBulkAction("restore")');
|
$I->executeJS('submitBulkAction("restore")');
|
||||||
$I->wait(1);
|
$I->wait(1);
|
||||||
$I->amOnPage("/clients/{$clientId}");
|
$I->amOnPage("/clients/{$clientId}");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user