|
|
|
|
@ -129,6 +129,8 @@ $assert(Capsule::table('ticket')->where('rootid', 1)->count() === 1,
|
|
|
|
|
$assert(Capsule::table('ticket_attachments')->count() === 1,
|
|
|
|
|
'Successful attachment row is missing.');
|
|
|
|
|
$attachment = Capsule::table('ticket_attachments')->first();
|
|
|
|
|
$assert((string) $attachment->original_name === 'ok.png',
|
|
|
|
|
'Successful attachment did not preserve its sanitized original name.');
|
|
|
|
|
$assert(is_file(BASE_PATH . '/storage/ticket-attachments/' . $attachment->storage_key),
|
|
|
|
|
'Successful attachment file is missing.');
|
|
|
|
|
|
|
|
|
|
|