You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it passes on the first dataset but subsequent ones fail:
FAIL Tests\Unit\Traits\FileUploadTraitTest
✓ that it uploads a file with dataset "profile_photo" 5.99s
⨯ that it uploads a file with dataset "signature" 0.21s
⨯ that it uploads a file with dataset "id" 0.20s
⨯ that it uploads a file with dataset "utility_bill" 0.17s
────────────────────────────────────────────────────────────────────────────
FAILED Tests\Unit\Traits\FileUploadTraitTest > that it upload… TypeError
Illegal offset type
at vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager.php:120
116▕ * @return \Illuminate\Contracts\Filesystem\Filesystem
117▕ */
118▕ protected function get($name)
119▕ {
➜ 120▕ return $this->disks[$name] ?? $this->resolve($name);
121▕ }
122▕
123▕ /**
124▕ * Resolve the given disk.
1 vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager.php:120
2 vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager.php:83
What's the reason for this error and how can I resolve it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have this test:
it passes on the first dataset but subsequent ones fail:
What's the reason for this error and how can I resolve it.
Beta Was this translation helpful? Give feedback.
All reactions