Fixed tests
This commit is contained in:
parent
68996d863b
commit
69451cb8ee
|
@ -48,7 +48,7 @@ class PullCoursesActionTest extends TestCase
|
||||||
$activity = Activity::factory()->inNami(1003)->name('Tätigkeit')->create();
|
$activity = Activity::factory()->inNami(1003)->name('Tätigkeit')->create();
|
||||||
$member = Member::factory()->defaults()->for(Group::factory()->inNami(1000)->name('SG Wald'))->inNami(1001)->create();
|
$member = Member::factory()->defaults()->for(Group::factory()->inNami(1000)->name('SG Wald'))->inNami(1001)->create();
|
||||||
$course = Course::factory()->name('BS')->inNami(11)->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,
|
'courseId' => 11,
|
||||||
'organizer' => 'TTT',
|
'organizer' => 'TTT',
|
||||||
'eventName' => 'Schulung',
|
'eventName' => 'Schulung',
|
||||||
|
@ -93,7 +93,7 @@ class PullCoursesActionTest extends TestCase
|
||||||
->has(CourseMember::factory()->for(Course::factory()->inNami(50))->inNami(55), 'courses')
|
->has(CourseMember::factory()->for(Course::factory()->inNami(50))->inNami(55), 'courses')
|
||||||
->inNami(1001)
|
->inNami(1001)
|
||||||
->create();
|
->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);
|
app(PullCoursesAction::class)->handle($member);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue