#28 - holidays management (#30)

* #28 - holidays management

* #28 - fix

* #28 - fix

* #28 - fix

* #28 - fix

* #28 - fix

* #28 - fix

* #28 - cr fix
This commit is contained in:
Adrian Hopek
2022-01-25 09:02:48 +01:00
committed by GitHub
parent 6854c7a9f8
commit 026bfe485f
30 changed files with 938 additions and 23 deletions

View File

@@ -89,7 +89,7 @@ class UserTest extends FeatureTestCase
"lastName" => "Doe",
"email" => "john.doe@example.com",
"employmentForm" => EmploymentForm::B2B_CONTRACT->value,
"employmentDate" => Carbon::now()->toDateTimeString(),
"employmentDate" => Carbon::now()->toDateString(),
])
->assertSessionHasNoErrors();
@@ -98,7 +98,7 @@ class UserTest extends FeatureTestCase
"last_name" => "Doe",
"email" => "john.doe@example.com",
"employment_form" => EmploymentForm::B2B_CONTRACT->value,
"employment_date" => Carbon::now()->toDateTimeString(),
"employment_date" => Carbon::now()->toDateString(),
]);
}
@@ -114,7 +114,7 @@ class UserTest extends FeatureTestCase
"last_name" => $user->last_name,
"email" => $user->email,
"employment_form" => $user->employment_form->value,
"employment_date" => $user->employment_date->toDateTimeString(),
"employment_date" => $user->employment_date->toDateString(),
]);
$this->actingAs($admin)
@@ -123,7 +123,7 @@ class UserTest extends FeatureTestCase
"lastName" => "Doe",
"email" => "john.doe@example.com",
"employmentForm" => EmploymentForm::B2B_CONTRACT->value,
"employmentDate" => Carbon::now()->toDateTimeString(),
"employmentDate" => Carbon::now()->toDateString(),
])
->assertSessionHasNoErrors();
@@ -132,7 +132,7 @@ class UserTest extends FeatureTestCase
"last_name" => "Doe",
"email" => "john.doe@example.com",
"employment_form" => EmploymentForm::B2B_CONTRACT->value,
"employment_date" => Carbon::now()->toDateTimeString(),
"employment_date" => Carbon::now()->toDateString(),
]);
}