- Refactored fallback submission logic in `class-event-handler.php` to remove `wp_die`/`exit` calls and use redirects for error handling, enabling proper unit testing. - Implemented meta-data saving (dates, venue, organizer) in the fallback logic using `update_post_meta`. - Updated unit tests (`test-event-management.php`) to remove `markTestIncomplete` calls related to handler errors and uncommented meta assertions. Unit tests for fallback logic now pass. - Added Instructions section and Return to Dashboard button to the event form shortcode (`display_event_form_shortcode`). - Applied basic theme styling classes (`ast-container`, `notice`, `ast-button`) to the event form. - Updated `docs/implementation_plan.md` to reflect completion of tasks 4.1-4.5 and set focus to Task 5. Refs: Task 4.1, 4.2, 4.3, 4.4, 4.5
1 line
No EOL
4.1 KiB
Text
1 line
No EOL
4.1 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},"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.123,"Test_HVAC_Dashboard_Display::test_dashboard_access_wrong_role":0.001,"Test_HVAC_Dashboard_Display::test_dashboard_access_correct_role":0.003,"Test_HVAC_Dashboard_Display::test_events_table_all_filter":0.004,"Test_HVAC_Dashboard_Display::test_events_table_publish_filter":0.002,"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}} |