remove missed default value

This commit is contained in:
Yisroel Baum 2026-04-26 20:43:27 +03:00
parent 041590da15
commit 8eb0f2366b
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
4 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,6 @@ class CreateUserDto
public function __construct( public function __construct(
public EmailAddress $email, public EmailAddress $email,
public string $passwordHash, public string $passwordHash,
public bool $isAdmin = false, public bool $isAdmin,
) {} ) {}
} }

View file

@ -35,6 +35,7 @@ class AuthMiddlewareTest extends TestCase
$this->user = $this->userRepo->create(new CreateUserDto( $this->user = $this->userRepo->create(new CreateUserDto(
email: new EmailAddress('test@test.com'), email: new EmailAddress('test@test.com'),
passwordHash: '', passwordHash: '',
isAdmin: false,
)); ));
$this->middleware = new AuthMiddleware( $this->middleware = new AuthMiddleware(
$this->sessionRepo, $this->sessionRepo,

View file

@ -40,6 +40,7 @@ class CreatePlanTest extends TestCase
$this->userRepo->create(new CreateUserDto( $this->userRepo->create(new CreateUserDto(
email: new EmailAddress('test@test.com'), email: new EmailAddress('test@test.com'),
passwordHash: '', passwordHash: '',
isAdmin: false,
)); ));
$this->createScheduledNode = new CreateScheduledNode( $this->createScheduledNode = new CreateScheduledNode(
scheduledNodeRepo: $this->scheduledNodeRepo, scheduledNodeRepo: $this->scheduledNodeRepo,

View file

@ -43,6 +43,7 @@ class PlanControllerTest extends TestCase
$this->user = $this->userRepo->create(new CreateUserDto( $this->user = $this->userRepo->create(new CreateUserDto(
email: new EmailAddress('test@test.com'), email: new EmailAddress('test@test.com'),
passwordHash: '', passwordHash: '',
isAdmin: false,
)); ));
$text = $this->textRepo->create(new CreateTextDto('testname')); $text = $this->textRepo->create(new CreateTextDto('testname'));
$this->nodeRepo->create(new CreateNodeDto( $this->nodeRepo->create(new CreateNodeDto(