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

Change @test annotations to #[Test] attributes

This commit is contained in:
Samuel Štancl 2025-07-28 17:20:58 +02:00
parent f9f28c9d26
commit 5fa5c3b7dd
29 changed files with 179 additions and 165 deletions

View file

@ -5,6 +5,7 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Tests;
use Illuminate\Support\Facades\Route;
use PHPUnit\Framework\Attributes\Test;
use Stancl\Tenancy\Database\Concerns\HasDomains;
use Stancl\Tenancy\Database\Models;
use Stancl\Tenancy\Middleware\InitializeTenancyByDomainOrSubdomain;
@ -26,7 +27,7 @@ class CombinedDomainAndSubdomainIdentificationTest extends TestCase
config(['tenancy.tenant_model' => CombinedTenant::class]);
}
/** @test */
#[Test]
public function tenant_can_be_identified_by_subdomain()
{
config(['tenancy.central_domains' => ['localhost']]);
@ -49,7 +50,7 @@ class CombinedDomainAndSubdomainIdentificationTest extends TestCase
$this->assertSame('acme', tenant('id'));
}
/** @test */
#[Test]
public function tenant_can_be_identified_by_domain()
{
config(['tenancy.central_domains' => []]);