Fixed tests

This commit is contained in:
Philipp Lang 2023-02-13 09:12:41 +01:00
parent 68996d863b
commit 69451cb8ee
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class PullCoursesActionTest extends TestCase
$activity = Activity::factory()->inNami(1003)->name('Tätigkeit')->create();
$member = Member::factory()->defaults()->for(Group::factory()->inNami(1000)->name('SG Wald'))->inNami(1001)->create();
$course = Course::factory()->name('BS')->inNami(11)->create();
app(CourseFake::class)->fetches(1001, [50])->shows(1001, NamiCourse::factory()->toModel([
app(CourseFake::class)->fetches(1001, [50])->shows(1001, NamiCourse::factory()->toCourse([
'courseId' => 11,
'organizer' => 'TTT',
'eventName' => 'Schulung',
@ -93,7 +93,7 @@ class PullCoursesActionTest extends TestCase
->has(CourseMember::factory()->for(Course::factory()->inNami(50))->inNami(55), 'courses')
->inNami(1001)
->create();
app(CourseFake::class)->fetches(1001, [55])->shows(1001, NamiCourse::factory()->toModel(['id' => 55, 'courseId' => 50, 'organizer' => 'ZZU']));
app(CourseFake::class)->fetches(1001, [55])->shows(1001, NamiCourse::factory()->toCourse(['id' => 55, 'courseId' => 50, 'organizer' => 'ZZU']));
app(PullCoursesAction::class)->handle($member);