| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function create(array $attributes = []): TemporaryUpload |
||
| 30 | { |
||
| 31 | $fakeUpload = UploadedFile::fake()->image('test.jpg', $this->fakeImageWidth, $this->fakeImageHeight); |
||
| 32 | |||
| 33 | return TemporaryUpload::createForFile( |
||
| 34 | $fakeUpload, |
||
| 35 | session()->getId(), |
||
| 36 | $attributes['uuid'] ?? Str::uuid(), |
||
| 37 | $attributes['name'] ?? 'name', |
||
| 38 | ); |
||
| 47 |