remove missed default value
This commit is contained in:
parent
041590da15
commit
8eb0f2366b
4 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,6 @@ class CreateUserDto
|
|||
public function __construct(
|
||||
public EmailAddress $email,
|
||||
public string $passwordHash,
|
||||
public bool $isAdmin = false,
|
||||
public bool $isAdmin,
|
||||
) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ class AuthMiddlewareTest extends TestCase
|
|||
$this->user = $this->userRepo->create(new CreateUserDto(
|
||||
email: new EmailAddress('test@test.com'),
|
||||
passwordHash: '',
|
||||
isAdmin: false,
|
||||
));
|
||||
$this->middleware = new AuthMiddleware(
|
||||
$this->sessionRepo,
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ class CreatePlanTest extends TestCase
|
|||
$this->userRepo->create(new CreateUserDto(
|
||||
email: new EmailAddress('test@test.com'),
|
||||
passwordHash: '',
|
||||
isAdmin: false,
|
||||
));
|
||||
$this->createScheduledNode = new CreateScheduledNode(
|
||||
scheduledNodeRepo: $this->scheduledNodeRepo,
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ class PlanControllerTest extends TestCase
|
|||
$this->user = $this->userRepo->create(new CreateUserDto(
|
||||
email: new EmailAddress('test@test.com'),
|
||||
passwordHash: '',
|
||||
isAdmin: false,
|
||||
));
|
||||
$text = $this->textRepo->create(new CreateTextDto('testname'));
|
||||
$this->nodeRepo->create(new CreateNodeDto(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue