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:
parent
1748767b10
commit
a924b12da5
1 changed files with 3 additions and 3 deletions
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue