From 15ce834dc08391bdf5ed47780c94a9cb8c40549c Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 4 Mar 2023 12:51:49 +0100 Subject: [PATCH] Fix tests --- tests/Feature/Activity/StoreTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Feature/Activity/StoreTest.php b/tests/Feature/Activity/StoreTest.php index 105a1147..bbb9d2fb 100644 --- a/tests/Feature/Activity/StoreTest.php +++ b/tests/Feature/Activity/StoreTest.php @@ -17,12 +17,14 @@ class StoreTest extends TestCase $response = $this->post(route('activity.store'), [ 'name' => 'Lorem', + 'is_filterable' => true, 'subactivities' => [], ]); $response->assertRedirect('/activity'); $this->assertDatabaseHas('activities', [ 'name' => 'Lorem', + 'is_filterable' => 1, 'nami_id' => null, ]); $this->assertDatabaseCount('activity_subactivity', 0); @@ -47,6 +49,7 @@ class StoreTest extends TestCase $response = $this->post(route('activity.store'), [ 'name' => 'Lorem', 'nami_id' => 556, + 'is_filterable' => true, 'subactivities' => [], ]); @@ -62,6 +65,7 @@ class StoreTest extends TestCase $response = $this->from('/activity')->post(route('activity.store'), [ 'name' => 'Lorem', + 'is_filterable' => true, 'subactivities' => [$subactivity->id], ]);