From 1b44cf9fc565a3e535e4b7ce438083789411abe0 Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Thu, 17 Mar 2022 14:36:05 +0100 Subject: [PATCH] #85 - fix --- ...olumn_and_remove_name_column_in_vacation_requests_table.php | 2 +- tests/Feature/VacationRequestTest.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/database/migrations/2022_03_17_105927_add_event_ids_column_and_remove_name_column_in_vacation_requests_table.php b/database/migrations/2022_03_17_105927_add_event_ids_column_and_remove_name_column_in_vacation_requests_table.php index 7e9c240..226f79a 100644 --- a/database/migrations/2022_03_17_105927_add_event_ids_column_and_remove_name_column_in_vacation_requests_table.php +++ b/database/migrations/2022_03_17_105927_add_event_ids_column_and_remove_name_column_in_vacation_requests_table.php @@ -19,7 +19,7 @@ return new class() extends Migration { { Schema::table("vacation_requests", function (Blueprint $table): void { $table->dropColumn("event_ids"); - $table->string("name"); + $table->string("name")->nullable(); }); } }; diff --git a/tests/Feature/VacationRequestTest.php b/tests/Feature/VacationRequestTest.php index deee29f..7dbca66 100644 --- a/tests/Feature/VacationRequestTest.php +++ b/tests/Feature/VacationRequestTest.php @@ -84,7 +84,6 @@ class VacationRequestTest extends FeatureTestCase $this->assertDatabaseHas("vacation_requests", [ "user_id" => $user->id, "year_period_id" => $currentYearPeriod->id, - "name" => "1/" . $currentYearPeriod->year, "type" => VacationType::Vacation->value, "state" => WaitingForTechnical::$name, "from" => Carbon::create($currentYearPeriod->year, 2, 7)->toDateString(), @@ -121,7 +120,6 @@ class VacationRequestTest extends FeatureTestCase "user_id" => $user->id, "creator_id" => $creator->id, "year_period_id" => $currentYearPeriod->id, - "name" => "1/" . $currentYearPeriod->year, "type" => VacationType::Vacation->value, "state" => WaitingForTechnical::$name, "from" => Carbon::create($currentYearPeriod->year, 2, 7)->toDateString(), @@ -161,7 +159,6 @@ class VacationRequestTest extends FeatureTestCase "user_id" => $user->id, "creator_id" => $creator->id, "year_period_id" => $currentYearPeriod->id, - "name" => "1/" . $currentYearPeriod->year, "type" => VacationType::Vacation->value, "state" => Approved::$name, "from" => Carbon::create($currentYearPeriod->year, 2, 7)->toDateString(),