Releases: Brain-WP/BrainMonkey
Releases · Brain-WP/BrainMonkey
v2.7.0
Added
- The function mocks for
has_filter()andhas_action()now support the$priorityparameter as added in WordPress 6.9 by @jrfnl.
Changed
- Composer: the version constraints for Mockery have been tightened up by @jrfnl.
- Confirmed compatibility with PHP 8.4 and 8.5.
- The package as distributed will no longer contain dev-only files by @jrfnl.
- Various housekeeping, including improvements to the tests, documentation and CI.
Fixed
- Default values for some parameters in function mocks for WP have been aligned with WP Core by @jrfnl.
This fixes a few situations where WP Core would allow for not passing a parameter, while BrainMonkey did not, or would expect a different default value when skipping a parameter.
In particular, this affects the function mocks ofdoing_action(),doing_filter(),do_action_deprecated(),apply_filters_deprecated(),has_filter()andhas_action().
Full Changelog: 2.6.2...2.7.0
v2.6.2
Changed
- Several updates and improvements on GH Actions, by @jrfnl
- Add dependabot configuration file by @jrfnl
- WP Helper functions: ensure parameter names are in line with WP Core by @jrfnl
- Predefined functions enhancements by @gmazzap
Added
- Add
wp_validate_booleantest assertions by @paulshryock - Stub
_n_noop,_nx_noop,translate_nooped_pluralby @gmazzap - PHP 8.4 Compatibility by @jrfnl
Full Changelog: 2.6.1...2.6.2
v2.6.1
v2.6.0
v2.5.0
v2.4.2
v2.4.1
v2.4.0
Added
- Stubs for
do_action_deprecatedandapply_filters_deprecated
Changed
- Improved Travis workflow, including PHP cross-version compatibility, props @jrfnl
- Added codecov.io to Travis
- Improved PHPUnit compatibility across PHP versions, props @jrfnl
Fixed
- Fixed logic bug in
HookStorage::parseArgsToAdd, props @szepeviktor - Fix implode argument order (PHP 7.4 compatibility fix), props @jrfnl
- Many code styling fixes and cleanup, props @jrfnl
v2.3.1
v2.3.0
Added
Actions\expectRemovedandFilters\expectRemoved(see #45)Functions\stubTranslationFunctions()Functions\stubEscapeFunctions()- Pre-defined stubs for
is_wp_error()andabsint - Default params handling for added and removed hooks
- Tests for new features
- Basic functional tests
- Docs for new features
Changed
- Re-structured tests folder and test suites
- Deleted bootstrap file and rely on autoload-dev only
- Improved base test class
- Docs improvements in various files (ses #49)
- Improved various doc blocks and removed all
@throwsoccurrences
Fixed
- Minor tests issues
- End-of-line inconsistencies