From 250f927d3322c47a067cf24fba00a698377bc35b Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Mon, 28 Nov 2022 10:53:35 +0500 Subject: [PATCH] test name and other improvements --- tests/Features/RedirectTest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/Features/RedirectTest.php b/tests/Features/RedirectTest.php index 71b1114b..7808961d 100644 --- a/tests/Features/RedirectTest.php +++ b/tests/Features/RedirectTest.php @@ -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';