diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results index 9cd9904..ddde75c 100644 --- a/.phpunit.cache/test-results +++ b/.phpunit.cache/test-results @@ -1 +1 @@ -{"version":"pest_2.35.1","defects":{"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_throws_can_authenticate_with_DocuWare_Credentials":8},"times":{"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_basket":1.705,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_file_cabinet":1.74,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_a_document_value":3.496,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_multiple_document_values":2.932,"P\\Tests\\Feature\\Requests\\Documents\\Thumbnail\\GetDocumentDownloadThumbnailRequestTest::__pest_evaluable_it_can_download_a_document_thumbnail":3.472,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadSectionTest::__pest_evaluable_it_can_download_a_section":5.83,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_responsible_identity_service":1.83,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_identity_service_configuration":2.388,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_authenticate_with_DocuWare_Credentials":2.877,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTextDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.001,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_add_roles_to_a_user":9.31,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_remove_roles_to_a_user":7.815,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfAGroupTest::__pest_evaluable_it_can_list_users_of_a_group":2.602,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexNumericDTOTest::__pest_evaluable_it_create_index_numeric_dto":0,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryStepsTest::__pest_evaluable_it_can_get_document_workflow_history":9.515,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexMemoDTOTest::__pest_evaluable_it_create_prepare_index_memo_dto":0.001,"P\\Tests\\Feature\\SleepTest::__pest_evaluable_sleep":1.866,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfARoleTest::__pest_evaluable_it_can_list_users_of_a_role":3.099,"P\\Tests\\Feature\\Requests\\Documents\\ApplicationProperties\\ApplicationPropertiesTest::__pest_evaluable_it_can_add_get_update_delete_application_properties_to_a_document":3.036,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexKeywordDTOTest::__pest_evaluable_it_create_prepare_index_keyword_dto":0,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetAllSectionsFromADocumentTest::__pest_evaluable_it_can_get_all_sections_from_a_document":3.717,"P\\Tests\\Feature\\Requests\\Fields\\GetFieldsRequestTest::__pest_evaluable_it_can_list_fields_for_a_file_cabinet":2.561,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDecimalDTOTest::__pest_evaluable_it_create_index_numeric_dto":0,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadDocumentTest::__pest_evaluable_it_can_download_a_document":2.927,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetAllRolesForASpecificUserTest::__pest_evaluable_it_can_list_groups":2.65,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateTimeDTOTest::__pest_evaluable_it_create_index_date_time_dto":0.001,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_makeContent_dto":0,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetASpecificDialogTest::__pest_evaluable_it_can_get_a_dialog":2.644,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\RestoreDocumentsFromTrashBinTest::__pest_evaluable_it_can_restore_documents_in_trash":2.875,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetRolesTest::__pest_evaluable_it_can_list_groups":3.149,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\DeleteDocumentsFromTrashBinTest::__pest_evaluable_it_can_delete_documents_in_trash":3.694,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadThumbnailTest::__pest_evaluable_it_can_download_a_thumbnail":2.557,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\StapleTest::__pest_evaluable_it_can_staple_2_documents":14.338,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\DeleteSectionTest::__pest_evaluable_it_can_delete_a_specific_section":3.3,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetAllGroupsForASpecificUserTest::__pest_evaluable_it_can_list_groups_for_a_specific_user":2.962,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization":1.869,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_dialog":1.735,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document":1.86,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization_index":2.647,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_table_row":1.914,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_field":1.608,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_field":1.501,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_suggestion_field":1.724,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_paginator":1.879,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_file_cabinet":1.924,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetASpecificSectionTest::__pest_evaluable_it_can_get_a_specific_section":2.684,"P\\Tests\\Feature\\Requests\\Organization\\GetOrganizationsRequestTest::__pest_evaluable_it_can_list_organizations":2.683,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_add_groups_to_a_user":9.489,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_remove_groups_to_a_user":7.993,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\ClipTest::__pest_evaluable_it_can_clip_2_documents":8.714,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_create_users":3.451,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_update_users":7.758,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnstapleTest::__pest_evaluable_it_can_unstaple_a_document":15.049,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetDocumentsFromAFileCabinetTest::__pest_evaluable_it_can_get_all_documents":2.79,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersTest::__pest_evaluable_it_can_list_users":2.465,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetASpecificDocumentFromAFileCabinetTest::__pest_evaluable_it_can_show_a_document":3.066,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetDialogsOfASpecificTypeTest::__pest_evaluable_it_can_list_dialogs_for_a_file_cabinet":2.208,"P\\Tests\\Core\\ArchTest::__pest_evaluable_it_will_not_use_any_debug_function":0.268,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnclipTest::__pest_evaluable_it_can_unclip_2_documents":15.156,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetGroupsTest::__pest_evaluable_it_can_list_groups":2.383,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentPreviewRequestTest::__pest_evaluable_it_can_preview_a_document_image":3.026,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUserByIdTest::__pest_evaluable_it_can_get_user_by_id":2.65,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateDTOTest::__pest_evaluable_it_create_index_date_dto":0.001,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentCountRequestTest::__pest_evaluable_it_can_get_a_total_count_of_documents":3.283,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryTest::__pest_evaluable_it_can_get_document_workflow_history":8.826,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_without_file_name_and_file_content_and_delete_it":2.612,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_with_index_values_and_delete_it":4.422,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator_in_trash":2.255,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates_in_trash":2.056,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_with_null_values_in_trash":2.418,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_in_trash":2.289,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator_in_trash":2.493,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future_in_trash":2.662,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":1.689,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past_in_trash":2.331,"P\\Tests\\Feature\\Requests\\FileCabinets\\General\\GetFileCabinetInformationTest::__pest_evaluable_it_can_get_file_cabinet_information":2.322,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTableDTOTest::__pest_evaluable_it_create_prepare_index_text_dto_using_dto":0.001,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator":2.559,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates":2.2,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":2.64,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_null_values":2.558,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past":2.683,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_multiple_values":2.875,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future":2.573,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents":2.318,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator":2.736,"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_a_file_to_a_data_record":3.446,"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_files_to_a_data_record":2.365,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_throws_can_authenticate_with_DocuWare_Credentials":1.048,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_throws_an_error_if_credentials_are_wrong":2.325,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_throws_an_error_if_password_is_null":3.696,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetASpecificSectionTest::__pest_evaluable_it_demo_get_a_specific_section":2.912,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\TextshotSectionTest::__pest_evaluable_it_get_textshot_for_a_specific_section":11.44}} \ No newline at end of file +{"version":"pest_2.35.1","defects":{"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_throws_can_authenticate_with_DocuWare_Credentials":8},"times":{"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_basket":0.734,"P\\Tests\\Feature\\DocuWareTest::__pest_evaluable_it_can_create_encrypted_url_for_a_document_in_a_file_cabinet":0.675,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_a_document_value":1.202,"P\\Tests\\Feature\\Requests\\Documents\\PutDocumentFieldsRequestTest::__pest_evaluable_it_can_update_multiple_document_values":1.111,"P\\Tests\\Feature\\Requests\\Documents\\Thumbnail\\GetDocumentDownloadThumbnailRequestTest::__pest_evaluable_it_can_download_a_document_thumbnail":1.4,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadSectionTest::__pest_evaluable_it_can_download_a_section":1.607,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_responsible_identity_service":0.94,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_get_oath_identity_service_configuration":0.994,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_can_authenticate_with_DocuWare_Credentials":1.102,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTextDTOTest::__pest_evaluable_it_create_prepare_index_text_dto":0.005,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_add_roles_to_a_user":7.467,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\AddRemoveUserToARoleTest::__pest_evaluable_it_can_remove_roles_to_a_user":6.224,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfAGroupTest::__pest_evaluable_it_can_list_users_of_a_group":1.161,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexNumericDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.004,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryStepsTest::__pest_evaluable_it_can_get_document_workflow_history":8.437,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexMemoDTOTest::__pest_evaluable_it_create_prepare_index_memo_dto":0.004,"P\\Tests\\Feature\\SleepTest::__pest_evaluable_sleep":0.719,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersOfARoleTest::__pest_evaluable_it_can_list_users_of_a_role":1.011,"P\\Tests\\Feature\\Requests\\Documents\\ApplicationProperties\\ApplicationPropertiesTest::__pest_evaluable_it_can_add_get_update_delete_application_properties_to_a_document":1.197,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexKeywordDTOTest::__pest_evaluable_it_create_prepare_index_keyword_dto":0.003,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetAllSectionsFromADocumentTest::__pest_evaluable_it_can_get_all_sections_from_a_document":1.387,"P\\Tests\\Feature\\Requests\\Fields\\GetFieldsRequestTest::__pest_evaluable_it_can_list_fields_for_a_file_cabinet":1.502,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDecimalDTOTest::__pest_evaluable_it_create_index_numeric_dto":0.004,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadDocumentTest::__pest_evaluable_it_can_download_a_document":1.208,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetAllRolesForASpecificUserTest::__pest_evaluable_it_can_list_groups":1.193,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateTimeDTOTest::__pest_evaluable_it_create_index_date_time_dto":0.006,"P\\Tests\\Unit\\DTO\\DocumentIndex\\PrepareDTOTest::__pest_evaluable_it_create_prepare_makeContent_dto":0.003,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetASpecificDialogTest::__pest_evaluable_it_can_get_a_dialog":0.901,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\RestoreDocumentsFromTrashBinTest::__pest_evaluable_it_can_restore_documents_in_trash":1.27,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyRoles\\GetRolesTest::__pest_evaluable_it_can_list_groups":1.543,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\DeleteDocumentsFromTrashBinTest::__pest_evaluable_it_can_delete_documents_in_trash":1.252,"P\\Tests\\Feature\\Requests\\Documents\\Download\\DownloadThumbnailTest::__pest_evaluable_it_can_download_a_thumbnail":1.61,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\StapleTest::__pest_evaluable_it_can_staple_2_documents":13.132,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\DeleteSectionTest::__pest_evaluable_it_can_delete_a_specific_section":1.356,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetAllGroupsForASpecificUserTest::__pest_evaluable_it_can_list_groups_for_a_specific_user":1.075,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization":0.661,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_dialog":0.705,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document":0.705,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_organization_index":0.733,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_table_row":0.693,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_field":0.7,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_field":0.731,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_suggestion_field":0.737,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_document_paginator":0.642,"P\\Tests\\Feature\\DTOTest::__pest_evaluable_it_create_a_fake_file_cabinet":0.661,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetASpecificSectionTest::__pest_evaluable_it_can_get_a_specific_section":1.123,"P\\Tests\\Feature\\Requests\\Organization\\GetOrganizationsRequestTest::__pest_evaluable_it_can_list_organizations":0.78,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_add_groups_to_a_user":7.601,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\AddRemoveUserToAGroupTest::__pest_evaluable_it_can_remove_groups_to_a_user":6.083,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\ClipTest::__pest_evaluable_it_can_clip_2_documents":7.023,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_create_users":2.471,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\CreateUpdateUsers\\CreateUpdateUserTest::__pest_evaluable_it_can_update_users":6.364,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnstapleTest::__pest_evaluable_it_can_unstaple_a_document":14.948,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetDocumentsFromAFileCabinetTest::__pest_evaluable_it_can_get_all_documents":1.795,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUsersTest::__pest_evaluable_it_can_list_users":1.014,"P\\Tests\\Feature\\Requests\\FileCabinets\\Search\\GetASpecificDocumentFromAFileCabinetTest::__pest_evaluable_it_can_show_a_document":1.071,"P\\Tests\\Feature\\Requests\\FileCabinets\\Dialogs\\GetDialogsOfASpecificTypeTest::__pest_evaluable_it_can_list_dialogs_for_a_file_cabinet":0.85,"P\\Tests\\Core\\ArchTest::__pest_evaluable_it_will_not_use_any_debug_function":0.766,"P\\Tests\\Feature\\Requests\\Documents\\ClipUnclipStapleUnstaple\\UnclipTest::__pest_evaluable_it_can_unclip_2_documents":12.879,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetModifyGroups\\GetGroupsTest::__pest_evaluable_it_can_list_groups":0.804,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentPreviewRequestTest::__pest_evaluable_it_can_preview_a_document_image":1.296,"P\\Tests\\Feature\\Requests\\General\\UserManagement\\GetUsers\\GetUserByIdTest::__pest_evaluable_it_can_get_user_by_id":1.229,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexDateDTOTest::__pest_evaluable_it_create_index_date_dto":0.004,"P\\Tests\\Feature\\Requests\\Documents\\GetDocumentCountRequestTest::__pest_evaluable_it_can_get_a_total_count_of_documents":1.142,"P\\Tests\\Feature\\Requests\\Workflow\\GetDocumentWorkflowHistoryTest::__pest_evaluable_it_can_get_document_workflow_history":6.48,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_without_file_name_and_file_content_and_delete_it":0.964,"P\\Tests\\Feature\\Requests\\Documents\\PostDocumentRequestTest::__pest_evaluable_it_can_upload_document_with_index_values_and_delete_it":1.032,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator_in_trash":0.819,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates_in_trash":0.652,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_with_null_values_in_trash":0.913,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_in_trash":0.782,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator_in_trash":0.82,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future_in_trash":0.8,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.69,"P\\Tests\\Feature\\Requests\\Documents\\DocumentsTrashBin\\GetDocumentsFromTrashBinTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past_in_trash":0.822,"P\\Tests\\Feature\\Requests\\FileCabinets\\General\\GetFileCabinetInformationTest::__pest_evaluable_it_can_get_file_cabinet_information":0.862,"P\\Tests\\Unit\\DTO\\DocumentIndex\\IndexTableDTOTest::__pest_evaluable_it_create_prepare_index_text_dto_using_dto":0.005,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_same_operator":0.827,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_more_than_two_dates":1.152,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_t_search_documents_by_diverged_date_range":0.683,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_null_values":0.877,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_past":0.907,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_with_multiple_values":1.937,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents_dates_filter_in_future":0.883,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_search_documents":1.117,"P\\Tests\\Feature\\Requests\\Search\\GetSearchRequestTest::__pest_evaluable_it_can_override_search_documents_dates_filter_by_using_equal_operator":0.919,"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_a_file_to_a_data_record":1.586,"P\\Tests\\Feature\\Requests\\FileCabinets\\Upload\\AppendFilesToADataRecordTest::__pest_evaluable_it_can_attach_files_to_a_data_record":0.661,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_throws_can_authenticate_with_DocuWare_Credentials":1.048,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_throws_an_error_if_credentials_are_wrong":1.194,"P\\Tests\\Feature\\DocuWareAuthenticationTest::__pest_evaluable_it_throws_an_error_if_password_is_null":3.696,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetASpecificSectionTest::__pest_evaluable_it_demo_get_a_specific_section":2.912,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\TextshotSectionTest::__pest_evaluable_it_get_textshot_for_a_specific_section":11.44,"P\\Tests\\Feature\\Requests\\Documents\\Sections\\GetTextshotTest::__pest_evaluable_it_get_textshot_for_a_specific_section":1.553}} \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist index cc3e2d8..5095a04 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,32 +1,15 @@ - + tests - - ./src - @@ -38,14 +21,13 @@ - - + + - + - @@ -53,4 +35,9 @@ - + + + ./src + + + \ No newline at end of file diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index faac795..ffccded 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -57,10 +57,14 @@ protected function defaultAuth(): TokenAuthenticator */ protected function getOrCreateNewOAuthToken(): string { + //ray($this->configuration->identifier); + $cache = Cache::store($this->configuration->cacheDriver); $cacheKey = 'docuware.oauth.'.$this->configuration->identifier; + //ray($cache->has($cacheKey),'hasCachkey?'); + // Check if the token exists in cache and return it if found if ($cache->has($cacheKey)) { $token = Crypt::decrypt($cache->get($cacheKey)); diff --git a/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php b/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php index 503bd7f..800c082 100644 --- a/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php +++ b/src/DTO/Authentication/OAuth/IdentityServiceConfiguration.php @@ -26,44 +26,44 @@ public static function make(array $data): self frontchannelLogoutSessionSupported: Arr::get($data, 'frontchannel_logout_session_supported'), backchannelLogoutSupported: Arr::get($data, 'backchannel_logout_supported'), backchannelLogoutSessionSupported: Arr::get($data, 'backchannel_logout_session_supported'), - scopesSupported: Arr::get($data, 'scopes_supported'), - claimsSupported: Arr::get($data, 'claims_supported'), - grantTypesSupported: Arr::get($data, 'grant_types_supported'), - responseTypesSupported: Arr::get($data, 'response_types_supported'), - responseModesSupported: Arr::get($data, 'response_modes_supported'), - tokenEndpointAuthMethodsSupported: Arr::get($data, 'token_endpoint_auth_methods_supported'), - idTokenSigningAlgValuesSupported: Arr::get($data, 'id_token_signing_alg_values_supported'), - subjectTypesSupported: Arr::get($data, 'subject_types_supported'), - codeChallengeMethodsSupported: Arr::get($data, 'code_challenge_methods_supported'), + scopesSupported: Arr::get($data, 'scopes_supported', []), + claimsSupported: Arr::get($data, 'claims_supported', []), + grantTypesSupported: Arr::get($data, 'grant_types_supported', []), + responseTypesSupported: Arr::get($data, 'response_types_supported', []), + responseModesSupported: Arr::get($data, 'response_modes_supported', []), + tokenEndpointAuthMethodsSupported: Arr::get($data, 'token_endpoint_auth_methods_supported', []), + idTokenSigningAlgValuesSupported: Arr::get($data, 'id_token_signing_alg_values_supported', []), + subjectTypesSupported: Arr::get($data, 'subject_types_supported', []), + codeChallengeMethodsSupported: Arr::get($data, 'code_challenge_methods_supported', []), requestParameterSupported: Arr::get($data, 'request_parameter_supported'), - requestObjectSigningAlgValuesSupported: Arr::get($data, 'request_object_signing_alg_values_supported'), - promptValuesSupported: Arr::get($data, 'prompt_values_supported'), + requestObjectSigningAlgValuesSupported: Arr::get($data, 'request_object_signing_alg_values_supported', []), + promptValuesSupported: Arr::get($data, 'prompt_values_supported', []), authorizationResponseIssParameterSupported: Arr::get($data, 'authorization_response_iss_parameter_supported'), - backchannelTokenDeliveryModesSupported: Arr::get($data, 'backchannel_token_delivery_modes_supported'), + backchannelTokenDeliveryModesSupported: Arr::get($data, 'backchannel_token_delivery_modes_supported', []), backchannelUserCodeParameterSupported: Arr::get($data, 'backchannel_user_code_parameter_supported'), - dpopSigningAlgValuesSupported: Arr::get($data, 'dpop_signing_alg_values_supported'), + dpopSigningAlgValuesSupported: Arr::get($data, 'dpop_signing_alg_values_supported', []), windowsAuthEndpoint: Arr::get($data, 'windows_auth_endpoint'), ); } public function __construct( - public string $issuer, - public string $jwksUri, - public string $authorizationEndpoint, - public string $tokenEndpoint, - public string $userinfoEndpoint, - public string $endSessionEndpoint, - public string $checkSessionIframe, - public string $revocationEndpoint, - public string $introspectionEndpoint, - public string $deviceAuthorizationEndpoint, - public string $backchannelAuthenticationEndpoint, - public string $pushedAuthorizationRequestEndpoint, - public bool $requirePushedAuthorizationRequests, - public bool $frontchannelLogoutSupported, - public bool $frontchannelLogoutSessionSupported, - public bool $backchannelLogoutSupported, - public bool $backchannelLogoutSessionSupported, + public ?string $issuer, + public ?string $jwksUri, + public ?string $authorizationEndpoint, + public ?string $tokenEndpoint, + public ?string $userinfoEndpoint, + public ?string $endSessionEndpoint, + public ?string $checkSessionIframe, + public ?string $revocationEndpoint, + public ?string $introspectionEndpoint, + public ?string $deviceAuthorizationEndpoint, + public ?string $backchannelAuthenticationEndpoint, + public ?string $pushedAuthorizationRequestEndpoint, + public ?bool $requirePushedAuthorizationRequests, + public ?bool $frontchannelLogoutSupported, + public ?bool $frontchannelLogoutSessionSupported, + public ?bool $backchannelLogoutSupported, + public ?bool $backchannelLogoutSessionSupported, public array $scopesSupported, public array $claimsSupported, public array $grantTypesSupported, @@ -73,13 +73,13 @@ public function __construct( public array $idTokenSigningAlgValuesSupported, public array $subjectTypesSupported, public array $codeChallengeMethodsSupported, - public bool $requestParameterSupported, + public ?bool $requestParameterSupported, public array $requestObjectSigningAlgValuesSupported, public array $promptValuesSupported, - public bool $authorizationResponseIssParameterSupported, + public ?bool $authorizationResponseIssParameterSupported, public array $backchannelTokenDeliveryModesSupported, - public bool $backchannelUserCodeParameterSupported, + public ?bool $backchannelUserCodeParameterSupported, public array $dpopSigningAlgValuesSupported, - public string $windowsAuthEndpoint, + public ?string $windowsAuthEndpoint, ) {} } diff --git a/src/DTO/Config/ConfigWithCredentials.php b/src/DTO/Config/ConfigWithCredentials.php index 14e1284..5979622 100644 --- a/src/DTO/Config/ConfigWithCredentials.php +++ b/src/DTO/Config/ConfigWithCredentials.php @@ -2,9 +2,6 @@ namespace CodebarAg\DocuWare\DTO\Config; -use Illuminate\Support\Facades\Crypt; -use Illuminate\Support\Facades\Hash; - final class ConfigWithCredentials { public string $identifier; @@ -55,6 +52,6 @@ public function __construct( $this->scope = filled($scope) ? $scope : config('laravel-docuware.configurations.scope'); - $this->identifier = Hash::make($this->url.$this->username.Crypt::encrypt($this->password)); + $this->identifier = hash('sha256', $this->url.$this->username.$this->password); } } diff --git a/src/DTO/Config/ConfigWithCredentialsTrustedUser.php b/src/DTO/Config/ConfigWithCredentialsTrustedUser.php index c7f087c..4ba02df 100644 --- a/src/DTO/Config/ConfigWithCredentialsTrustedUser.php +++ b/src/DTO/Config/ConfigWithCredentialsTrustedUser.php @@ -2,9 +2,6 @@ namespace CodebarAg\DocuWare\DTO\Config; -use Illuminate\Support\Facades\Crypt; -use Illuminate\Support\Facades\Hash; - final class ConfigWithCredentialsTrustedUser { public string $identifier; @@ -59,6 +56,6 @@ public function __construct( $this->scope = filled($scope) ? $scope : config('laravel-docuware.configurations.scope'); - $this->identifier = Hash::make($this->url.$this->username.Crypt::encrypt($this->password)); + $this->identifier = hash('sha256', $this->url.$this->username.$this->password); } } diff --git a/src/DocuWare.php b/src/DocuWare.php index a50c6aa..c9df977 100644 --- a/src/DocuWare.php +++ b/src/DocuWare.php @@ -2,35 +2,8 @@ namespace CodebarAg\DocuWare; -use CodebarAg\DocuWare\DTO\Authentication\OAuth\RequestToken as RequestTokenDto; -use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetIdentityServiceConfiguration; -use CodebarAg\DocuWare\Requests\Authentication\OAuth\GetResponsibleIdentityService; -use CodebarAg\DocuWare\Requests\Authentication\OAuth\RequestTokenWithCredentials; - class DocuWare { - public function getNewAuthenticationOAuthToken( - ?string $username = '', - ?string $password = '', - ?string $grantType = 'password', - ?string $clientId = 'docuware.platform.net.client' - ): RequestTokenDto { - $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send(); - - $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( - identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl - ))->send(); - - $requestTokenResponse = (new RequestTokenWithCredentials( - tokenEndpoint: $identityServiceConfigurationResponse->dto()->tokenEndpoint, - clientId: $clientId, - username: $username, - password: $password, - ))->send(); - - return $requestTokenResponse->dto(); - } - public function searchRequestBuilder(): DocuWareSearchRequestBuilder { return new DocuWareSearchRequestBuilder; diff --git a/src/Facades/DocuWare.php b/src/Facades/DocuWare.php index e1f9ef0..cc08cb8 100644 --- a/src/Facades/DocuWare.php +++ b/src/Facades/DocuWare.php @@ -5,7 +5,6 @@ use Carbon\Carbon; use CodebarAg\DocuWare\DocuWareSearchRequestBuilder; use CodebarAg\DocuWare\DocuWareUrl; -use CodebarAg\DocuWare\DTO\Cookie; use CodebarAg\DocuWare\DTO\Documents\Document; use CodebarAg\DocuWare\DTO\Documents\DocumentThumbnail; use CodebarAg\DocuWare\DTO\Documents\Field; @@ -19,7 +18,6 @@ /** * @see \CodebarAg\DocuWare\DocuWare * - * @method static Cookie cookie(string $url, string $username, string $password, $rememberMe = false, $redirectToMyselfInCaseOfError = false, $licenseType = null) * @method static string login() * @method static void logout() * @method static Organization getOrganization(string $organizationId)