1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:24:04 +00:00

[v3] Rename tenant redirect macro (#389)

* [v3] Rename tenant redirect macro

* update tests
This commit is contained in:
Samuel Štancl 2020-05-03 17:59:59 +02:00 committed by GitHub
parent 5972364075
commit 60665517a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View file

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Tests;
use Route;
use Stancl\Tenancy\Features\CrossDomainRedirect;
use Stancl\Tenancy\Tenant;
class RedirectTest extends TestCase
@ -16,7 +17,7 @@ class RedirectTest extends TestCase
public function tenant_redirect_macro_replaces_only_the_hostname()
{
config([
'tenancy.features' => ['Stancl\Tenancy\Features\TenantRedirect'],
'tenancy.features' => [CrossDomainRedirect::class],
]);
Route::get('/foobar', function () {
@ -24,7 +25,7 @@ class RedirectTest extends TestCase
})->name('home');
Route::get('/redirect', function () {
return redirect()->route('home')->tenant('abcd');
return redirect()->route('home')->domain('abcd');
});
Tenant::create('foo.localhost');