Skip to content

Latest commit

 

History

History
90 lines (60 loc) · 3.93 KB

CHANGELOG.md

File metadata and controls

90 lines (60 loc) · 3.93 KB

Change Log for WordPress integration tests with PestPHP

All notable changes to this project will be documented in this file.

This projects adheres to Semantic Versioning and Keep a CHANGELOG.

No documentation available about unreleased changes as of yet.

[1.6.1] Add PHP 8.2 test matrix

Added

  • PHP 8.2 to the test matrix to ensure nothing is failing on PHP 8.2

1.6.0 Update integration tests and package name

Changed

  • Fix the integration test base class
    • Previously, both unit and integration tests used the same base test class. While this worked, integration tests weren't using the polyfilled WP_UnitTestCase case from the wp-test-utils package.

      This, in turn, meant that the tests weren't properly cleaned up, and that some usefull features, like WordPress test factories couldn't be used easily in the integration tests.

      The caveat is that, because of how Pest works, we cannot just define the uses statement in the Pest.php file, because the WordPress unit test class becomes available after the bootstrap process. For more details see the issue pestphp/pest#623.

  • Change the name of the package to dingo-d/wp-pest

None of this is a BC break, as your tests will work. This jsut makes it work a bit better.

1.5.0 Updates

Added

  • Add a force parameter to force download WordPress files
  • Add additional tests
    • Some tests are skipped because they cannot be run in isolation, or the underlying component does type casting.

Fixed

  • Fix the issue with WP core not being included in the development version
    • By default, the wordpress-develop git repo doesn't contain all the WP Core files, so now we have to download development files for tests and the core separately.
  • Remove unnecessary error checks

Updated

  • Stubs are updated to mimic WP 6.1.1 version

1.4.1 Fix slug validation

Fixed

  • Fixed issue with the plugin slug validation #15

1.4.0 Update command for CI/CD runs

Added

  • Add option to avoid the prompt at the end of the setup command
    • This caused issue in CI/CD pipelines where the setup command would just hang without confirmation.

1.3.0 Tags check update

Fixed

  • Fixed the #10 issue - tags not correctly fetched from the API

Changed

  • Updated the method for getting tags, and verifying against the correct one

1.2.0 Update bootstrap

Changed

  • Fixed the --group=integration check in the bootstrap
    • Before it depended on the position of the argument, so in PhpStorm running tests failed because the argument wasn't in the second place.

1.1.0 Update base test case

Changed

  • Add Yoast's TestCase as the base test case to both unit and integration tests in Pest.php

1.0.0 Initial release

  • Added the functionality for the WordPress integration tests with PestPHP package.