Fixed FakeBackend
This commit is contained in:
parent
b4f1972162
commit
b515f18b73
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue