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:
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');
|
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';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue