commit14
This commit is contained in:
@@ -151,8 +151,8 @@ test('imported ledger is append-only and disabling the history cannot silently r
|
||||
$proposal = prepareOriginalHistory($this);
|
||||
$this->actingAs($this->f['validator']);
|
||||
app(SupplierPayables::class)->engine($this->f['validator'])->command('validate_history', $proposal['proposal_id'], 'Preservar responsabilidade única', (string) Str::uuid());
|
||||
expect(fn () => DB::table('pa_history_imports')->update(['confirmed_minor' => 0]))->toThrow(QueryException::class);
|
||||
expect(fn () => DB::table('pa_imported_payments')->delete())->toThrow(QueryException::class);
|
||||
expect(fn () => DB::transaction(fn () => DB::table('pa_history_imports')->update(['confirmed_minor' => 0])))->toThrow(QueryException::class);
|
||||
expect(fn () => DB::transaction(fn () => DB::table('pa_imported_payments')->delete()))->toThrow(QueryException::class);
|
||||
config(['common-payables.history_enabled' => false]);
|
||||
expect(fn () => app(ExternalPaymentWorkflow::class)->outstanding($this->f['invoice']))->toThrow(HttpException::class);
|
||||
config(['common-payables.enabled' => false]);
|
||||
|
||||
Reference in New Issue
Block a user