added it_get_public_file_record_and_download_them, it_try_to_get_protected_file_record, it_get_shared_record, it_get_deleted_shared_record, it_get_shared_page, it_get_deleted_shared_page test

This commit is contained in:
Peter Papp
2021-03-10 08:41:21 +01:00
parent e164d1021c
commit aecdf56304
14 changed files with 195 additions and 41 deletions

View File

@@ -205,8 +205,7 @@ function get_item($type, $id)
*/
function get_shared($token)
{
return Share::where(DB::raw('BINARY `token`'), $token)
return Share::whereToken($token)
->firstOrFail();
}