issues
search
WordPress
/
create-block-theme
A WordPress plugin to create block themes
https://wordpress.org/plugins/create-block-theme/
GNU General Public License v2.0
323
stars
51
forks
source link
Improve the CBT_Theme_Fonts class tests
#711
Open
matiasbenedetto
opened
1 month ago
matiasbenedetto
commented
1 month ago
What?
Simplify the
CBT_Theme_Fonts class tests
.
Try to make the tests more granular and simple.
Make the tests follow core guidelines.
Avoid manual operations to manipulate or create themes inside the test cases. Example:
https://github.com/WordPress/create-block-theme/blob/128d363fe17b4187bec80f1fe8ba188966e51d8f/tests/test-theme-fonts.php#L27-L41
Why?
Make the tests more effective for testing the class methods.
Make the tests easier to understand, maintain, and update.
What?
Simplify the CBT_Theme_Fonts class tests.
Why?