mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:14:03 +00:00
test name and other improvements
This commit is contained in:
parent
7125e1f3cc
commit
250f927d33
1 changed files with 3 additions and 4 deletions
|
|
@ -35,10 +35,9 @@ test('tenant route helper generates correct url', function () {
|
|||
expect(tenant_route('foo.localhost', 'foo', []))->toBe('http://foo.localhost/abcdef');
|
||||
});
|
||||
|
||||
test('redirect from central to tenant works fine', function () {
|
||||
config([
|
||||
'tenancy.tenant_unaware_features' => [CrossDomainRedirect::class],
|
||||
]);
|
||||
// Check that `domain()` can be called on a redirect before tenancy is used (regression test for #949)
|
||||
test('redirect from central to tenant works', function () {
|
||||
// `CrossDomainRedirect` feature already enabled in config
|
||||
|
||||
Route::get('/foobar', function () {
|
||||
return 'Foo';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue