From 1cf8d34b783ab48d556843076547bb436a0204b6 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Fri, 30 Aug 2024 22:04:14 +0200 Subject: [PATCH] Fix tests --- tests/EndToEnd/MemberSearchTest.php | 7 +++++++ tests/Feature/Member/CreateTest.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/EndToEnd/MemberSearchTest.php b/tests/EndToEnd/MemberSearchTest.php index 5a0b3314..10af4ee8 100644 --- a/tests/EndToEnd/MemberSearchTest.php +++ b/tests/EndToEnd/MemberSearchTest.php @@ -2,12 +2,19 @@ namespace Tests\EndToEnd; +use App\Country; use App\Member\Member; use Tests\EndToEndTestCase; class MemberSearchTest extends EndToEndTestCase { + public function setUp(): void + { + parent::setUp(); + Country::factory()->create(['name' => 'Deutschland']); + } + public function testItHandlesFullTextSearch(): void { $this->withoutExceptionHandling()->login()->loginNami(); diff --git a/tests/Feature/Member/CreateTest.php b/tests/Feature/Member/CreateTest.php index 5efbccfc..a2098688 100644 --- a/tests/Feature/Member/CreateTest.php +++ b/tests/Feature/Member/CreateTest.php @@ -39,7 +39,7 @@ class CreateTest extends TestCase 'without_education_at' => null, 'without_efz_at' => null, 'address' => '', - ], $response, 'data'); + ], $response, 'meta.default'); } public function testItDoesntDisplayActivitiesAndSubactivitiesNotInNami(): void