upskill-event-manager/wordpress-dev/wordpress/.phpunit.result.cache
bengizmo 0bcae8792c fix(tests): Resolve Task 4.7 integration test issues & UMB
- Debugged and resolved failures/skips in integration tests for Task 4.7 (Create/Modify Event Pages). The root cause was incorrect loading and initialization assumptions regarding The Events Calendar Community Events (TEC CE) within the PHPUnit environment.
- Corrected TEC CE loading in `tests/bootstrap.php` by:
    - Fixing the plugin filename (`tribe-community-events.php`).
    - Changing the loading hook from `muplugins_loaded` to `plugins_loaded`.
- Refactored `test-event-management-integration.php`:
    - Moved TEC CE availability checks from `wpSetUpBeforeClass` to `set_up` to avoid premature checks.
    - Removed skip logic based on incorrect assumptions about TEC CE's `$form_handler` property.
- Refactored `class-event-handler.php`:
    - Removed incorrect conditional delegation logic attempting to call a non-existent TEC CE method.
    - Fixed a PHP syntax error (missing closing brace) introduced during previous edits.
- Integration tests for Task 4.7 (`Event_Management_Integration_Test`) now pass successfully.
2025-04-02 07:02:06 -03:00

1 line
No EOL
5.4 KiB
Text

{"version":1,"defects":{"Test_Login_Handler::test_class_exists":4,"Test_Login_Handler::test_shortcode_registered":4,"Test_Login_Handler::test_handle_authentication_exists":4,"Test_Login_Handler::test_custom_login_redirect_hvac_trainer":4,"Test_Login_Handler::test_custom_login_redirect_non_hvac_trainer":4,"Test_Login_Handler::test_custom_login_redirect_non_hvac_trainer_with_requested_redirect":4,"Test_Login_Handler::test_custom_login_redirect_wp_error":4,"RegistrationValidationTest::test_required_fields_validation":3,"RegistrationValidationTest::test_email_validation":3,"RegistrationValidationTest::test_password_validation":3,"RegistrationValidationTest::test_url_validation":3,"Test_HVAC_Dashboard_Data::test_get_total_events_count":3,"Test_HVAC_Dashboard_Data::test_get_upcoming_events_count":3,"Test_HVAC_Dashboard_Data::test_get_past_events_count":3,"Test_HVAC_Dashboard_Data::test_get_total_tickets_sold":3,"Test_HVAC_Dashboard_Data::test_get_total_revenue":3,"Test_HVAC_Dashboard_Data::test_get_annual_revenue_target":1,"Test_HVAC_Dashboard_Data::test_get_events_table_data_all":4,"Test_HVAC_Dashboard_Data::test_get_events_table_data_publish":4,"Test_HVAC_Dashboard_Data::test_get_events_table_data_draft":4,"Test_HVAC_Dashboard_Data::test_get_events_table_data_private":4,"Test_HVAC_Dashboard_Data::tearDownAfterClass":3,"Test_HVAC_Dashboard_Display::test_dashboard_access_logged_out":1,"Test_HVAC_Dashboard_Display::test_dashboard_access_wrong_role":1,"Test_HVAC_Dashboard_Display::test_dashboard_access_correct_role":3,"Event_Management_Test::test_event_creation_requires_valid_data":2,"Event_Management_Test::test_event_creation_success":2,"Event_Management_Test::test_event_modification_success":2,"Event_Management_Test::test_unauthorized_user_cannot_create_event":2,"Event_Management_Test::test_unauthorized_user_cannot_modify_event":2,"Event_Management_Test::test_event_venue_association":2,"Event_Management_Test::test_event_organizer_association":2,"Test_Event_Summary_Data::test_get_event_details":1,"Test_Event_Summary_Data::test_get_event_venue_details":1,"Test_Event_Summary_Data::test_get_event_organizer_details":1,"Test_Event_Summary_Data::test_get_event_transactions":1,"Test_Event_Summary_Data::test_get_data_for_nonexistent_event":4,"Test_Event_Summary_Integration::test_get_event_transactions":1,"Event_Management_Integration_Test::test_tec_ce_handler_creates_event_successfully":1,"Event_Management_Integration_Test::test_tec_ce_handler_modifies_event_successfully":1,"Event_Management_Integration_Test::test_tec_ce_handler_prevents_creation_with_invalid_data":1},"times":{"Test_Login_Handler::test_class_exists":0.001,"Test_Login_Handler::test_shortcode_registered":0,"Test_Login_Handler::test_handle_authentication_exists":0,"Test_Login_Handler::test_custom_login_redirect_hvac_trainer":0.001,"Test_Login_Handler::test_custom_login_redirect_non_hvac_trainer":0,"Test_Login_Handler::test_custom_login_redirect_non_hvac_trainer_with_requested_redirect":0,"Test_Login_Handler::test_custom_login_redirect_wp_error":0,"RegistrationValidationTest::test_required_fields_validation":0.001,"RegistrationValidationTest::test_email_validation":0,"RegistrationValidationTest::test_password_validation":0.003,"RegistrationValidationTest::test_url_validation":0.001,"Test_HVAC_Dashboard_Data::test_get_total_events_count":0.589,"Test_HVAC_Dashboard_Data::test_get_upcoming_events_count":0.002,"Test_HVAC_Dashboard_Data::test_get_past_events_count":0.001,"Test_HVAC_Dashboard_Data::test_get_total_tickets_sold":0.002,"Test_HVAC_Dashboard_Data::test_get_total_revenue":0.002,"Test_HVAC_Dashboard_Data::test_get_annual_revenue_target":0.013,"Test_HVAC_Dashboard_Data::test_get_events_table_data_all":0.008,"Test_HVAC_Dashboard_Data::test_get_events_table_data_publish":0.002,"Test_HVAC_Dashboard_Data::test_get_events_table_data_draft":0.002,"Test_HVAC_Dashboard_Data::test_get_events_table_data_private":0.003,"Test_HVAC_Dashboard_Data::tearDownAfterClass":0,"Test_HVAC_Dashboard_Display::test_dashboard_access_logged_out":0.079,"Test_HVAC_Dashboard_Display::test_dashboard_access_wrong_role":0.001,"Test_HVAC_Dashboard_Display::test_dashboard_access_correct_role":0.005,"Test_HVAC_Dashboard_Display::test_events_table_all_filter":0.005,"Test_HVAC_Dashboard_Display::test_events_table_publish_filter":0.003,"Test_HVAC_Dashboard_Display::test_events_table_draft_filter":0.003,"Event_Management_Test::test_event_creation_requires_valid_data":0.003,"Event_Management_Test::test_event_creation_success":0.001,"Event_Management_Test::test_event_modification_success":0.001,"Event_Management_Test::test_unauthorized_user_cannot_create_event":0.001,"Event_Management_Test::test_unauthorized_user_cannot_modify_event":0.001,"Event_Management_Test::test_event_venue_association":0.001,"Event_Management_Test::test_event_organizer_association":0.001,"Test_Event_Summary_Data::test_get_event_details":0.569,"Test_Event_Summary_Data::test_get_event_venue_details":0.026,"Test_Event_Summary_Data::test_get_event_organizer_details":0.015,"Test_Event_Summary_Data::test_get_event_transactions":0.002,"Test_Event_Summary_Data::test_get_data_for_nonexistent_event":0.001,"Test_Event_Summary_Integration::test_get_event_transactions":8.482,"Event_Management_Integration_Test::test_tec_ce_handler_creates_event_successfully":0.54,"Event_Management_Integration_Test::test_tec_ce_handler_modifies_event_successfully":0.001,"Event_Management_Integration_Test::test_tec_ce_handler_prevents_creation_with_invalid_data":0}}