Skip to content

Latest commit

 

History

History
242 lines (132 loc) · 6.02 KB

CHANGELOG.md

File metadata and controls

242 lines (132 loc) · 6.02 KB

LifterLMS Tests Changelog

v4.4 - 2024-09-09

  • Fixing E2E tests docker compose command.

v4.3 - 2024-04-05

  • Upgrading to latest version of WPCS.

v4.2 - 2024-01-25

  • Changing container build command to use newer package for netcat

v4.1.1 - 2023-10-23

  • Allow PHP dynamic properties for all the test classes.

v4.1.0 - 2022-09-15

  • Added optional $headers parameter to LLMS_REST_Unit_Test_Case::perform_mock_request().

v4.0.0 - 2022-08-18

  • Automatically skips API integration tests in LLMS_Unit_Test_Case_Base::set_up().
  • Added the ability to mock multiple consecutive HTTP requests via LLMS_Unit_Test_Mock_Http::mock_http_request().
  • [BREAKING] Removed protected class members: LLMS_Unit_Test_Mock_Http::$_url_to_mock, LLMS_Unit_Test_Mock_Http::$_mock_return, and LLMS_Unit_Test_Mock_Http::$_fuzzy_match.

v3.3.2 - 2022-08-17

  • Improve compatibility with packages that don't explicitly require the LifterLMS core plugin.

v3.3.1 - 2021-12-16

  • Fixed issues encountered when passing command arguments containing quotes into the wp command.

v3.3.0 - 2021-12-13

  • Added LLMS_Unit_Test_API_Integrations a trait with utilities intended for use with external API integration tests.

v3.2.1 - 2021-11-26

  • Output assertions found in LLMS_Unit_Test_Assertions_Output can call protected or private methods through LLMS_Unit_Test_Util::call_method().

v3.2.0 - 2021-11-08

  • Add phpunit testcase method, create_attachment(), a wrapper around WP core's attachment upload factory method.

v3.1.0 - 2021-10-04

  • Raise minimum supported PHP version to 7.3
  • Add support for phpunit 9.5
  • When running llms-tests install, the default value of WP_TESTS_VERSION is now set to trunk.

v3.0.0 - 2021-09-27

  • Updated to rely on yoast/phpunit-polyfills.
  • Renamed method LLMS_Unit_Test_Case_Base::setUp() to LLMS_Unit_Test_Case_Base::set_up() for WP core compat.
  • Renamed method LLMS_Unit_Test_Case_Base::tearDown() to LLMS_Unit_Test_Case_Base::tear_down() for WP core compat.
  • Renamed method LLMS_REST_Unit_Test_Case::setUp() to LLMS_REST_Unit_Test_Case::set_up() for WP core compat.
  • Renamed method LLMS_REST_Unit_Test_Case::tearDown() to LLMS_REST_Unit_Test_Case::tear_down() for WP core compat.

v2.1.0 - 2021-08-26

  • Introduced pluggable version of llms_exit() which throws the LLMS_Unit_Test_Exception_Exit exception in favor of exiting.

v2.0.2 - 2021-08-23

  • Bugfix: Fixed static property retrieval via LLMS_Unit_Test_Utils::get_private_property_value().

v2.0.1 - 2021-08-17

  • Add behat @given step definition to install LifterLMS add-ons.

v2.0.0 - 2021-07-20

  • Add wp-cli testing via behat.

v1.13.0 - 2020-11-04

  • Added methods for mocking WP_Screen: llms_tests_mock_current_screen( $id ) & llms_tests_reset_current_screen().
  • Fixed an issue encountered during asset registration assertions when the $wp_styles or $wp_scripts global had not yet been instantiated.

v1.12.2 - 2020-05-13

  • Fix error encountered when using llms_setcookie().

v1.12.1 - 2020-05-05

  • Disable WP_DEBUG in new docker environments.
  • Don't enable WP_SCRIPT_DEBUG in new docker environments.
  • Automatically update the WP core and run WP db updates when starting new docker environments.

v1.12.0 - 2020-05-04

  • Updated the llms-env down command to include removal of volumes.
  • Remove call to llms-env rm when using llms-env reset since it's redundant after calling llms-env down.
  • Added the llms-env stop command to allow stopping containers without removal.
  • Added option -a --all to the llms-env ps command to allow listing the status of stopped containers.

v1.11.0 - 2020-04-22

  • Added utility function LLMS_Unit_Test_Util::get_private_property_value().

v1.10.0 - 2020-04-08

  • Added assertions for testing against LifterLMS notices added via llms_add_notice().

v1.9.0 - 2020-04-01

  • Added llms-env, a set of tools and configurations for manager a simple Docker service. Useful for e2e testing.

v1.8.0 - 2020-01-29

  • Added assertions for determining if assets are registered and/or enqueued with the WP asset dependency classes.

v1.7.3 - 2019-12-19

  • Fix issue causing plugin script subcommand from being able to properly download and unzip plugins loaded from an arbitrary zip file URL on the web.

v1.7.2 - 2019-12-09

  • Unset mocked cookies $_COOKIE superglobal when unsetting mock cookies.

v1.7.1 - 2019-12-09

  • Also set the $_COOKIE superglobal when setting mock cookies.

v1.7.0 - 2019-12-09

  • Add LLMS_Tests_Cookie class to mock and test cookies set by llms_setcookie().

v1.6.2 - 2019-11-11

  • Allow usage of LLMS_Unit_Test_Util::call_method() on static class methods.

v1.6.1 - 2019-11-04

  • Create plugin directory reference with getcwd().

v1.6.0 - 2019-10-11

  • Added method to automate a LifterLMS quiz for a given user.

v1.5.0 - 2019-10-01

  • Added string assertion methods

v1.4.0 - 2019-03-13

  • added order factory

v1.3.0 - 2019-03-12

  • Added output assertion unit test case methods.
  • Separated unit test methods into traits.

v1.2.0 - 2019-01-25

  • Load add-on framework functions early with core framework functions
  • Recursively load framework functions from subdirectories

v1.3.0 - 2019-07-22

  • Added exception test cases.

v1.4.0 - 2019-08-09

  • Added additional WP_Error assertions.