1
0
Fork 0
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:
Abrar Ahmad 2022-11-28 10:53:35 +05:00
parent 7125e1f3cc
commit 250f927d33

View file

@ -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';