1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:34:04 +00:00

remove deprecation test

This commit is contained in:
Samuel Štancl 2024-04-16 03:14:31 +02:00
parent 4bdb986b96
commit 3e441e075f

View file

@ -103,13 +103,6 @@ test('random string ids are supported', function () {
RandomStringGenerator::$length = 8; // reset
});
// todo@deprecation remove this after deleting the class
test('referencing the old uuid generator throws an exception', function () {
$tenant = Tenant::create();
expect(fn() => app(\Stancl\Tenancy\UUIDGenerator::class)->generate($tenant))
->toThrow(Exception::class, 'Tenancy update note: UUIDGenerator has been renamed to Stancl\Tenancy\UniqueIdentifierGenerators\UUIDGenerator. Please update your config/tenancy.php');
});
test('custom tenant model can be used', function () {
$tenant = MyTenant::create();