- cr fix
This commit is contained in:
@@ -80,7 +80,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
"to" => Carbon::create($currentYearPeriod->year, 2, 11)->toDateString(),
|
||||
"comment" => "Comment for the vacation request.",
|
||||
])
|
||||
->assertOk();
|
||||
->assertRedirect();
|
||||
|
||||
$this->assertDatabaseHas("vacation_requests", [
|
||||
"user_id" => $user->id,
|
||||
@@ -115,7 +115,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
"to" => Carbon::create($currentYearPeriod->year, 2, 11)->toDateString(),
|
||||
"comment" => "Comment for the vacation request.",
|
||||
])
|
||||
->assertOk();
|
||||
->assertRedirect();
|
||||
|
||||
$this->assertDatabaseHas("vacation_requests", [
|
||||
"user_id" => $user->id,
|
||||
@@ -152,7 +152,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
"comment" => "Comment for the vacation request.",
|
||||
"flowSkipped" => true,
|
||||
])
|
||||
->assertOk();
|
||||
->assertRedirect();
|
||||
|
||||
$this->assertDatabaseHas("vacation_requests", [
|
||||
"user_id" => $user->id,
|
||||
@@ -182,7 +182,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
|
||||
$this->actingAs($technicalApprover)
|
||||
->post("/vacation-requests/{$vacationRequest->id}/accept-as-technical")
|
||||
->assertOk();
|
||||
->assertRedirect();
|
||||
|
||||
$vacationRequest->refresh();
|
||||
|
||||
@@ -205,7 +205,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
|
||||
$this->actingAs($administrativeApprover)
|
||||
->post("/vacation-requests/{$vacationRequest->id}/accept-as-administrative")
|
||||
->assertOk();
|
||||
->assertRedirect();
|
||||
|
||||
$vacationRequest->refresh();
|
||||
|
||||
@@ -236,7 +236,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
|
||||
$this->actingAs($technicalApprover)
|
||||
->post("/vacation-requests/{$vacationRequest->id}/reject")
|
||||
->assertOk();
|
||||
->assertRedirect();
|
||||
|
||||
$vacationRequest->refresh();
|
||||
|
||||
@@ -482,7 +482,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
|
||||
$this->actingAs($user)
|
||||
->post("/vacation-requests/{$vacationRequest->id}/cancel")
|
||||
->assertOk();
|
||||
->assertRedirect();
|
||||
|
||||
$vacationRequest->refresh();
|
||||
|
||||
@@ -539,7 +539,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
|
||||
$this->actingAs($administrativeApprover)
|
||||
->post("/vacation-requests/{$vacationRequest->id}/cancel")
|
||||
->assertOk();
|
||||
->assertRedirect();
|
||||
|
||||
$vacationRequest->refresh();
|
||||
|
||||
@@ -569,7 +569,7 @@ class VacationRequestTest extends FeatureTestCase
|
||||
|
||||
$this->actingAs($user)
|
||||
->get("/vacation-requests/{$vacationRequest->id}/download")
|
||||
->assertOk();
|
||||
->assertSuccessful();
|
||||
}
|
||||
|
||||
public function testEmployeeCannotDownloadAnotherEmployeesVacationRequestAsPdf(): void
|
||||
|
Reference in New Issue
Block a user