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 function __construct(
|
||||||
public EmailAddress $email,
|
public EmailAddress $email,
|
||||||
public string $passwordHash,
|
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(
|
$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,
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue