Fixed FakeBackend

This commit is contained in:
philipp lang 2022-03-05 22:38:54 +01:00
parent b4f1972162
commit b515f18b73
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class FakeBackend {
$courseFake = app(CourseFake::class) $courseFake = app(CourseFake::class)
->fetches($member['id'], collect(data_get($member, 'courses', []))->pluck('id')->toArray()); ->fetches($member['id'], collect(data_get($member, 'courses', []))->pluck('id')->toArray());
foreach (data_get($member, 'courses', []) as $course) { foreach (data_get($member, 'courses', []) as $course) {
$courseFake->fetchesSingle($member['id'], $course); $courseFake->shows($member['id'], $course);
} }
} }