mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:04:02 +00:00
Change @test annotations to #[Test] attributes
This commit is contained in:
parent
f9f28c9d26
commit
5fa5c3b7dd
29 changed files with 179 additions and 165 deletions
|
|
@ -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\Middleware\InitializeTenancyByRequestData;
|
||||
use Stancl\Tenancy\Tests\Etc\Tenant;
|
||||
|
||||
|
|
@ -33,7 +34,7 @@ class RequestDataIdentificationTest extends TestCase
|
|||
parent::tearDown();
|
||||
}
|
||||
|
||||
/** @test */
|
||||
#[Test]
|
||||
public function header_identification_works()
|
||||
{
|
||||
InitializeTenancyByRequestData::$header = 'X-Tenant';
|
||||
|
|
@ -48,7 +49,7 @@ class RequestDataIdentificationTest extends TestCase
|
|||
->assertSee($tenant->id);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
#[Test]
|
||||
public function query_parameter_identification_works()
|
||||
{
|
||||
InitializeTenancyByRequestData::$header = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue