Reolled-back logic that would have made domains with no specific redirects to not fall back to the default redirects

This commit is contained in:
Alejandro Celaya
2021-09-26 11:10:00 +02:00
parent 95ab64ba77
commit c39e1e649d
2 changed files with 16 additions and 3 deletions

View File

@@ -81,6 +81,10 @@ class NotFoundRedirectHandlerTest extends TestCase
$domainService->findByAuthority(Argument::cetera())
->willReturn(Domain::withAuthority(''))
->shouldBeCalledOnce();
$resolver->resolveRedirectResponse(
Argument::type(NotFoundType::class),
Argument::type(NotFoundRedirectOptions::class),
)->willReturn(null)->shouldBeCalledOnce();
$resolver->resolveRedirectResponse(Argument::type(NotFoundType::class), Argument::type(Domain::class))
->willReturn(null)
->shouldBeCalledOnce();