-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop in situ PHPUnit tests #15
Comments
I've had some difficulty creating a framework for the PHPUnit tests. The call to This is because, during the method Workaround
Longer term solution
|
To do this I imported the This works for the It would make sense for these |
So far I've added tests for 5 field types. These have been tested with PHP 8.1 and PHP 8.2 |
Actually 6 - text, text-area, number, range, email, url This one to do for the basic field types: password. Then for the rest see the table of field types supported in https://www.oik-plugins.com/oik-plugins/field-block-for-acf-pro/ |
Content tests to be added: Image, File, WYSIWYG Editor, oEmbed, Gallery |
Before making any major changes to the ACF Field block plugin it makes sense to develop a set of in situ PHPUnit tests that can be used to confirm that the server side rendering of the block is working for each supported field type.
These tests can be run for each new version of ACF PRO, WordPress and whenever making changes.
See How to run PHPUnit tests for WordPress pligins in situ
The text was updated successfully, but these errors were encountered: