-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
927589d
commit 1748464
Showing
5 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,7 @@ public function testAdminCanCreateUser(): void | |
"email" => "[email protected]", | ||
"employmentForm" => EmploymentForm::B2bContract->value, | ||
"employmentDate" => Carbon::now()->toDateString(), | ||
"birthday" => Carbon::create(1990, 5, 31)->toDateString(), | ||
]) | ||
->assertSessionHasNoErrors(); | ||
|
||
|
@@ -121,6 +122,7 @@ public function testAdminCanCreateUser(): void | |
"position" => "Test position", | ||
"employment_form" => EmploymentForm::B2bContract->value, | ||
"employment_date" => Carbon::now()->toDateString(), | ||
"birthday" => Carbon::create(1990, 5, 31)->toDateString(), | ||
]); | ||
} | ||
|
||
|
@@ -137,6 +139,7 @@ public function testItCreatesProperPermissionsWhileCreatingUser(): void | |
"email" => "[email protected]", | ||
"employmentForm" => EmploymentForm::B2bContract->value, | ||
"employmentDate" => Carbon::now()->toDateString(), | ||
"birthday" => Carbon::create(1990, 5, 31)->toDateString(), | ||
]) | ||
->assertSessionHasNoErrors(); | ||
|
||
|
@@ -165,6 +168,7 @@ public function testAdminCanEditUser(): void | |
"last_name" => $user->profile->last_name, | ||
"employment_form" => $user->profile->employment_form->value, | ||
"employment_date" => $user->profile->employment_date->toDateString(), | ||
"birthday" => $user->profile->birthday->toDateString(), | ||
]); | ||
|
||
$this->actingAs($admin) | ||
|
@@ -176,6 +180,7 @@ public function testAdminCanEditUser(): void | |
"position" => "Test position", | ||
"employmentForm" => EmploymentForm::B2bContract->value, | ||
"employmentDate" => Carbon::now()->toDateString(), | ||
"birthday" => Carbon::create(1990, 5, 31)->toDateString(), | ||
]) | ||
->assertSessionHasNoErrors(); | ||
|
||
|
@@ -192,6 +197,7 @@ public function testAdminCanEditUser(): void | |
"position" => "Test position", | ||
"employment_form" => EmploymentForm::B2bContract->value, | ||
"employment_date" => Carbon::now()->toDateString(), | ||
"birthday" => Carbon::create(1990, 5, 31)->toDateString(), | ||
]); | ||
} | ||
|
||
|
@@ -239,6 +245,7 @@ public function testChangingUserRoleUpdatesPermissions(): void | |
"position" => "Test position", | ||
"employmentForm" => EmploymentForm::B2bContract->value, | ||
"employmentDate" => Carbon::now()->toDateString(), | ||
"birthday" => Carbon::create(1990, 5, 31)->toDateString(), | ||
]) | ||
->assertSessionHasNoErrors(); | ||
|
||
|