Tests: Add more PHPUnit tests for form type classes#347
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #347 +/- ##
============================================
+ Coverage 31.71% 31.89% +0.17%
Complexity 4410 4410
============================================
Files 291 291
Lines 36918 36914 -4
============================================
+ Hits 11710 11775 +65
+ Misses 25208 25139 -69
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
40c5eee to
af4b1f4
Compare
What
Follow-up to #333. Adds additional PHPUnit tests for form type classes.
How
test_edit_comment_renders_nothing_without_field_groupstest_enqueue_form_calls_check_submit_form,test_submit_form_applies_pre_submit_filter,test_submit_form_fires_action,test_submit_form_sets_globaltest_add_meta_boxes_removes_edit_form_after_title_action,test_block_editor_meta_box_hidden_fields_method_existstest_admin_enqueue_scripts_bails_when_not_on_nav_menus_screentest_admin_enqueue_scripts_bails_on_wrong_pagetest_admin_enqueue_scripts_bails_when_not_on_user_screen,test_render_edit_renders_nothing_without_field_groups,test_render_edit_with_different_user_idstest_admin_enqueue_scripts_bails_when_not_on_widgets_screenTesting Instructions
Run the form type tests:
vendor/bin/phpunit --filter="Test_Form"