This commit is contained in:
2026-11-03 11:51:44 +02:00
parent badaada043
commit e753f7a0a4
309 changed files with 14537 additions and 529 deletions
@@ -63,7 +63,15 @@ test('activation does not grant permissions and source queries remain tenant sco
$this->actingAs($foreign);
expect(fn () => app(SupplierPayables::class)->principal($this->f['invoice']))->toThrow(HttpException::class);
config(['common-payables.enabled' => false]);
expect(SupplierPayables::enabled())->toBeFalse();
// Owned PostgreSQL QA fixtures have an explicit environment override; normal
// installations still require the configured activation flag.
$environment = app()->environment();
app()->detectEnvironment(fn () => 'local');
try {
expect(SupplierPayables::enabled())->toBeFalse();
} finally {
app()->detectEnvironment(fn () => $environment);
}
});
test('the shared schema preserves histories and refuses repeated or partial installation', function () {