Releases: alleyinteractive/mantle-framework
Releases · alleyinteractive/mantle-framework
v1.2.0
Added
- Add support for dispatching jobs to the queue after the current response has
been sent. - Allow the block factory to override text when generating blocks.
- Added new
defer()
helper. - Added
Cache::flexible()
method to add SWR support to the cache (docs) - Added support for parallel unit testing with
brianium/paratest
(in beta). - Added dynamic creation of post type/taxonomy factories.
- Added
Reset_Server
trait to reset the server between tests. - Add
with_https()
to control if the request being tested is over HTTPS. - Add
andReturnBoolean()
andandReturn( fn ( $value ) => ... )
support to
action/filter expectations - Add cached HTTP response support using the
cache()
method.
Changed
- Breaking: Http Client pools should now be built using
->method()
and->url()
instead. - Dropped support for Redis as a cache backend in favor of the default object
cache drop-in. - Allow returning falsey from
Collection::map_to_dictionary()
.
v1.1.3
Added
- Added a
with_image()
helper to mocked HTTP responses. - Added a
is_blob()
andis_file()
helper toMantle\Http_Client\Response
. - Added
with_real_thumbnail()
method to post factory for creating posts with
real underlying thumbnail files.
Changed
- Added support for faking specific HTTP requests by method.
- Added helper for fluently building HTTP sequence responses.
Fixed
- Fixed an issue with taxonomy registration not returning an array.
v1.1.2
v1.1.1
v1.1.0
Added
- Added a
classname
/the_classname
helper to generate complex class names. - Added support for installing the Redis
object-cache.php
drop-in during
testing withwith_object_cache()
. - Added support for PHPUnit 11.
Changed
- Overhauled the bootloader to be more flexible and allow for more
customization. Supports passing configuration, custom kernels, exception
handlers, etc. via the bootloader when configuring the application. - Ensure that framework configuration is properly merged into application
configuration when booting the application. This allows for slimmer
configuration files in the application. Service providers will always
load without needing to be declared in the application configuration. - Load the
wp-content/vip-config/vip-config.php
file if it exists during
testing to integrate better with VIP Go projects.
Fixed
- Fixed issue with command jobs not working properly.
- Ensure that unit tests fail when a project's installation script fails.
- Fix anonymous queue jobs from WP-CLI failing to run.
- Fixed issue with HTTP Client not returning the proper headers.
v0.12.13
What's Changed
- Ensure Composer is properly loaded during unit tests when installing by @srtfisher in #542
Full Changelog: v0.12.12...v0.12.13
v1.0.7
Added
- Added a
block_factory()
helper to generate blocks in tests.
Changed
- Changed
Hookable
to accept all arguments passed to theadd_action()
and
add_filter()
functions.
Fixed
- Prevent sending mail during the install
wp_install()
call in unit tests by
mocking the$phpmailer
global earlier. - Allow anonymous models to define events via
Model::created()
methods. - Fixed the Collision printer with PHPUnit 10.
v1.0.6
Fixed
- Properly disabling VIP's alloptions protections during unit testing
(previously applied in v1.0.5).
Full Changelog: v1.0.5...v1.0.6
v1.0.5
Changed
- Disable VIP's
pre_wp_load_alloptions_protections
protection during unit testing.
Full Changelog: v1.0.4...v1.0.5