1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 15:14:04 +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'); expect(tenant_route('foo.localhost', 'foo', []))->toBe('http://foo.localhost/abcdef');
}); });
test('redirect from central to tenant works fine', function () { // Check that `domain()` can be called on a redirect before tenancy is used (regression test for #949)
config([ test('redirect from central to tenant works', function () {
'tenancy.tenant_unaware_features' => [CrossDomainRedirect::class], // `CrossDomainRedirect` feature already enabled in config
]);
Route::get('/foobar', function () { Route::get('/foobar', function () {
return 'Foo'; return 'Foo';