fixed member IndexTest

This commit is contained in:
philipp lang 2022-08-30 23:42:21 +02:00
parent c9ad7a6aa1
commit b090d280a9
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class IndexTest extends TestCase
'version' => 40,
]);
$this->withoutExceptionHandling();
$this->login();
$this->login()->loginNami();
Member::factory()->defaults()->has(CourseMember::factory()->for(Course::factory()), 'courses')->create(['firstname' => '::firstname::']);
$response = $this->get('/member');
@ -50,7 +50,7 @@ class IndexTest extends TestCase
public function testItShowsEfzForEfzMembership(): void
{
$this->withoutExceptionHandling();
$this->login();
$this->login()->loginNami();
$member = Member::factory()
->defaults()
->has(Membership::factory()->for(Subactivity::factory())->for(Activity::factory()->state(['has_efz' => true])))