1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:34:03 +00:00

Merge branch 'master' into fix-url-bootstrappers

This commit is contained in:
Samuel Štancl 2024-12-23 21:06:53 +01:00
commit 2da2ffbc2b
8 changed files with 249 additions and 148 deletions

View file

@ -93,8 +93,14 @@ test('central helper can be used in tenant requests', function (bool $enabled, b
}
}
})->with([
['enabled' => false, 'shouldThrow' => true],
['enabled' => true, 'shouldThrow' => false],
[
false, // Disabled
true // Should throw
],
[
true, // Enabled
false // Should not throw
],
]);
test('tenant run helper can be used on central requests', function (bool $enabled, bool $shouldThrow) {
@ -140,6 +146,12 @@ test('tenant run helper can be used on central requests', function (bool $enable
}
}
})->with([
['enabled' => false, 'shouldThrow' => true],
['enabled' => true, 'shouldThrow' => false],
[
false, // Disabled
true // Should throw
],
[
true, // Enabled
false // Should not throw
],
]);