mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-03 13:51:08 +00:00
refactor: adopt modular domain architecture (#747)
* refactor: stabilize model identities for domain migration * refactor: extract module platform context * refactor: assign models to domain contexts * refactor: extract ai platform context * refactor: extract storage platform context * refactor: extract mail platform context * refactor: extract pdf platform context * refactor: extract operations platform context * refactor: move installation into operations platform * refactor: extract money domain context * refactor: extract taxation domain context * refactor: extract catalog domain context * refactor: extract metadata domain context * refactor: extract reporting domain context * refactor: extract purchases domain context * refactor: extract receivables domain context * refactor: extract accounts domain context * refactor: complete reporting statement boundary * refactor: extract contacts domain context * refactor: extract sales domain context * refactor: remove legacy application layers * fix: migrate legacy bouncer role identities
This commit is contained in:
+13
-13
@@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Company;
|
||||
use App\Models\Customer;
|
||||
use App\Models\Expense;
|
||||
use App\Models\Invoice;
|
||||
use App\Models\Payment;
|
||||
use App\Models\PaymentAllocation;
|
||||
use App\Models\Tax;
|
||||
use App\Models\TaxType;
|
||||
use App\Models\User;
|
||||
use App\Services\Company\CompanyService;
|
||||
use App\Services\CustomerService;
|
||||
use App\Domains\Accounts\Application\CompanyService;
|
||||
use App\Domains\Accounts\Models\Company;
|
||||
use App\Domains\Accounts\Models\User;
|
||||
use App\Domains\Contacts\Application\CustomerService;
|
||||
use App\Domains\Contacts\Models\Customer;
|
||||
use App\Domains\Purchases\Models\Expense;
|
||||
use App\Domains\Receivables\Models\Payment;
|
||||
use App\Domains\Receivables\Models\PaymentAllocation;
|
||||
use App\Domains\Sales\Models\Invoice;
|
||||
use App\Domains\Taxation\Models\Tax;
|
||||
use App\Domains\Taxation\Models\TaxType;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
beforeEach(function () {
|
||||
@@ -73,7 +73,7 @@ test('company deletion removes receipt taxes through expense model events', func
|
||||
'tax_type_id' => $taxType->id,
|
||||
]);
|
||||
|
||||
app(CompanyService::class)->delete($company, $user);
|
||||
app(CompanyService::class)->delete($company);
|
||||
|
||||
$this->assertDatabaseMissing('taxes', ['id' => $tax->id]);
|
||||
});
|
||||
@@ -116,7 +116,7 @@ test('company deletion removes payment allocations before bulk payment deletion'
|
||||
'invoice_id' => $invoice->id,
|
||||
]);
|
||||
|
||||
app(CompanyService::class)->delete($company, $user);
|
||||
app(CompanyService::class)->delete($company);
|
||||
|
||||
$this->assertDatabaseMissing('payment_allocations', ['id' => $allocation->id]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user