Skip to content

Releases: alleyinteractive/mantle-framework

v1.1.2

20 Jun 15:23
408a5ca
Compare
Choose a tag to compare

Fixed

  • Fixed issue with the mantle-framework/testkit package depending on classes that do not exist for that package (introduced in v1.1.0).

v1.1.1

20 Jun 13:26
0aa37b7
Compare
Choose a tag to compare

Added

  • Add a with_json() helper to the HTTP client to send JSON data in a request.

Changed

  • Added types to the HTTP client methods.

Fixed

  • Fix the order of the vip-config.php loading that was added during 1.0.

v1.1.0

13 Jun 01:21
5426ee4
Compare
Choose a tag to compare

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 with with_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

07 May 18:20
79f5e67
Compare
Choose a tag to compare

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

29 Apr 14:32
9d91deb
Compare
Choose a tag to compare

Added

  • Added a block_factory() helper to generate blocks in tests.

Changed

  • Changed Hookable to accept all arguments passed to the add_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

19 Apr 16:16
4c8c2dd
Compare
Choose a tag to compare

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

18 Apr 15:41
8a2a670
Compare
Choose a tag to compare

Changed

  • Disable VIP's pre_wp_load_alloptions_protections protection during unit testing.

Full Changelog: v1.0.4...v1.0.5

v1.0.4

17 Apr 16:46
87f24c8
Compare
Choose a tag to compare

Added

  • Define the WP_RUN_CORE_TESTS constant during unit tests.

Fixed

  • Ensure that dumping the content dumps non-json content,

v1.0.3

15 Apr 16:47
35f9a50
Compare
Choose a tag to compare

Fixed

  • Proper unset server headers when testing.

Full Changelog: v1.0.2...v1.0.3

v1.0.2

15 Apr 14:24
5a0f8f3
Compare
Choose a tag to compare

Added

  • Added html_string() helper to make assertions against a HTML string easier in testing.
  • Added new assertion methods to test against elements.

Fixed

  • Fixed incorrect status code when testing.
  • Properly tear down the $wp_the_query global.

Full Changelog: v1.0.1...v1.0.2