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

Improve regression test

This commit is contained in:
lukinovec 2025-06-03 12:08:28 +02:00
parent 1748767b10
commit a924b12da5

View file

@ -249,9 +249,9 @@ test('clone middleware within middleware groups is properly handled during cloni
expect($clonedNestedRoute)->not()->toBeNull();
$nestedRouteMiddleware = tenancy()->getRouteMiddleware($clonedNestedRoute);
expect($nestedRouteMiddleware)
->toContain('web', 'auth', 'tenant')
->not()->toContain('clone')
// Should not contain any group names - middleware should be extracted
->not()->toContain('nested-group', 'level-2-group', 'level-3-group');
// Shouldn't contain 'clone' or any nested group names
->not()->toContain('clone', 'nested-group', 'level-2-group', 'level-3-group');
});