chore: commit current workspace changes
This commit is contained in:
@@ -62,3 +62,12 @@ it('does not treat reserved subdomains as profile hosts', function () {
|
||||
$this->call('GET', '/sections', [], [], [], ['HTTP_HOST' => 'www.skinbase26.test'])
|
||||
->assertRedirect('/categories');
|
||||
});
|
||||
|
||||
it('redirects arbitrary single-subdomain routes to the canonical host', function () {
|
||||
$response = app(Kernel::class)->handle(
|
||||
Request::create('/art/15234/similar', 'GET', ['page' => '2'], [], [], ['HTTP_HOST' => 'fu4z7d.skinbase26.test'])
|
||||
);
|
||||
|
||||
expect($response->getStatusCode())->toBe(301);
|
||||
expect($response->headers->get('location'))->toBe('http://skinbase26.test/art/15234/similar?page=2');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user