20 lines
532 B
PHP
20 lines
532 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Tenant;
|
|
|
|
use App\Domains\Bootstrap\Controllers\TenantBootstrapController;
|
|
use Illuminate\Http\Request;
|
|
use Tests\TestCase;
|
|
|
|
class TenantBootstrapRouteTest extends TestCase
|
|
{
|
|
public function test_the_static_bootstrap_route_takes_precedence_over_the_tenant_resource(): void
|
|
{
|
|
$route = app('router')->getRoutes()->match(
|
|
Request::create('/api/tenants/bootstrap', 'GET')
|
|
);
|
|
|
|
$this->assertSame(TenantBootstrapController::class, $route->getActionName());
|
|
}
|
|
}
|