@@ -1519,11 +1519,11 @@ public function ticket_owner_can_download_ticket_attachment(): void
15191519 $ ticket = SupportTicket::factory ()->create ([
15201520 'user_id ' => $ user ->id ,
15211521 'attachments ' => [
1522- ['name ' => 'test.png ' , 'path ' => 'support-tickets/ ticket_123/abc.png ' , 'size ' => 1000 , 'mime_type ' => 'image/png ' ],
1522+ ['name ' => 'test.png ' , 'path ' => 'ticket_123/abc.png ' , 'size ' => 1000 , 'mime_type ' => 'image/png ' ],
15231523 ],
15241524 ]);
15251525
1526- Storage::disk ('support-tickets ' )->put ('support-tickets/ ticket_123/abc.png ' , 'fake content ' );
1526+ Storage::disk ('support-tickets ' )->put ('ticket_123/abc.png ' , 'fake content ' );
15271527
15281528 $ response = $ this ->actingAs ($ user )
15291529 ->get (route ('customer.support.tickets.attachment ' , [$ ticket , 0 ]));
@@ -1542,7 +1542,7 @@ public function other_user_cannot_download_ticket_attachment(): void
15421542 $ ticket = SupportTicket::factory ()->create ([
15431543 'user_id ' => $ owner ->id ,
15441544 'attachments ' => [
1545- ['name ' => 'test.png ' , 'path ' => 'support-tickets/ ticket_123/abc.png ' , 'size ' => 1000 , 'mime_type ' => 'image/png ' ],
1545+ ['name ' => 'test.png ' , 'path ' => 'ticket_123/abc.png ' , 'size ' => 1000 , 'mime_type ' => 'image/png ' ],
15461546 ],
15471547 ]);
15481548
@@ -1567,11 +1567,11 @@ public function admin_can_download_ticket_attachment(): void
15671567 $ ticket = SupportTicket::factory ()->create ([
15681568 'user_id ' => $ user ->id ,
15691569 'attachments ' => [
1570- ['name ' => 'test.png ' , 'path ' => 'support-tickets/ ticket_123/abc.png ' , 'size ' => 1000 , 'mime_type ' => 'image/png ' ],
1570+ ['name ' => 'test.png ' , 'path ' => 'ticket_123/abc.png ' , 'size ' => 1000 , 'mime_type ' => 'image/png ' ],
15711571 ],
15721572 ]);
15731573
1574- Storage::disk ('support-tickets ' )->put ('support-tickets/ ticket_123/abc.png ' , 'fake content ' );
1574+ Storage::disk ('support-tickets ' )->put ('ticket_123/abc.png ' , 'fake content ' );
15751575
15761576 $ response = $ this ->actingAs ($ admin )
15771577 ->get (route ('customer.support.tickets.attachment ' , [$ ticket , 0 ]));
@@ -1588,7 +1588,7 @@ public function invalid_attachment_index_returns_404(): void
15881588 $ ticket = SupportTicket::factory ()->create ([
15891589 'user_id ' => $ user ->id ,
15901590 'attachments ' => [
1591- ['name ' => 'test.png ' , 'path ' => 'support-tickets/ ticket_123/abc.png ' , 'size ' => 1000 , 'mime_type ' => 'image/png ' ],
1591+ ['name ' => 'test.png ' , 'path ' => 'ticket_123/abc.png ' , 'size ' => 1000 , 'mime_type ' => 'image/png ' ],
15921592 ],
15931593 ]);
15941594
0 commit comments