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

Fix TestWith usage

This commit is contained in:
Samuel Štancl 2025-07-28 17:30:49 +02:00
parent 5fa5c3b7dd
commit e1b007946b

View file

@ -149,7 +149,7 @@ class QueueTest extends TestCase
});
}
#[Test] #[TestWith([true, false])]
#[Test] #[TestWith([true])] #[TestWith([false])]
public function tenancy_is_initialized_inside_queues(bool $shouldEndTenancy)
{
$this->withTenantDatabases();
@ -184,7 +184,7 @@ class QueueTest extends TestCase
});
}
#[Test] #[TestWith([true, false])]
#[Test] #[TestWith([true])] #[TestWith([false])]
public function tenancy_is_initialized_when_retrying_jobs(bool $shouldEndTenancy)
{
$this->withFailedJobs();
@ -260,7 +260,7 @@ class TestJob implements ShouldQueue
/** @var User|null */
protected $user;
public function __construct(Valuestore $valuestore, User $user = null)
public function __construct(Valuestore $valuestore, User|null $user = null)
{
$this->valuestore = $valuestore;
$this->user = $user;