commit21
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user