Skip to content

Commit 06ae46a

Browse files
committed
Created concern to bypass domain routing with associated testing
1 parent ca78f7d commit 06ae46a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Concerns/BypassesDomainRouting.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
->toHaveCount(0);
2626
});
2727

28-
test('if a custom validator has been added, it doesnt strip it', function () {
28+
test('if a custom validator has been added, it retains it', function () {
2929

3030
$anonymousClass = new class implements ValidatorInterface
3131
{
@@ -35,6 +35,7 @@ public function matches(Route $route, Request $request)
3535
}
3636
};
3737

38+
// add a custom validator.
3839
Route::$validators = [...Route::getValidators(), $anonymousClass];
3940

4041
(new class

0 commit comments

Comments
 (0)