- Fixing E2E tests docker compose command.
- Upgrading to latest version of WPCS.
- Changing container build command to use newer package for
netcat
- Allow PHP dynamic properties for all the test classes.
- Added optional
$headers
parameter toLLMS_REST_Unit_Test_Case::perform_mock_request()
.
- 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
, andLLMS_Unit_Test_Mock_Http::$_fuzzy_match
.
- Improve compatibility with packages that don't explicitly require the LifterLMS core plugin.
- Fixed issues encountered when passing command arguments containing quotes into the
wp
command.
- Added
LLMS_Unit_Test_API_Integrations
a trait with utilities intended for use with external API integration tests.
- Output assertions found in
LLMS_Unit_Test_Assertions_Output
can call protected or private methods throughLLMS_Unit_Test_Util::call_method()
.
- Add phpunit testcase method,
create_attachment()
, a wrapper around WP core's attachment upload factory method.
- Raise minimum supported PHP version to 7.3
- Add support for phpunit 9.5
- When running
llms-tests install
, the default value ofWP_TESTS_VERSION
is now set totrunk
.
- Updated to rely on
yoast/phpunit-polyfills
. - Renamed method
LLMS_Unit_Test_Case_Base::setUp()
toLLMS_Unit_Test_Case_Base::set_up()
for WP core compat. - Renamed method
LLMS_Unit_Test_Case_Base::tearDown()
toLLMS_Unit_Test_Case_Base::tear_down()
for WP core compat. - Renamed method
LLMS_REST_Unit_Test_Case::setUp()
toLLMS_REST_Unit_Test_Case::set_up()
for WP core compat. - Renamed method
LLMS_REST_Unit_Test_Case::tearDown()
toLLMS_REST_Unit_Test_Case::tear_down()
for WP core compat.
- Introduced pluggable version of
llms_exit()
which throws theLLMS_Unit_Test_Exception_Exit
exception in favor of exiting.
- Bugfix: Fixed static property retrieval via
LLMS_Unit_Test_Utils::get_private_property_value()
.
- Add behat
@given
step definition to install LifterLMS add-ons.
- Add wp-cli testing via behat.
- 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.
- Fix error encountered when using
llms_setcookie()
.
- 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.
- Updated the
llms-env down
command to include removal of volumes. - Remove call to
llms-env rm
when usingllms-env reset
since it's redundant after callingllms-env down
. - Added the
llms-env stop
command to allow stopping containers without removal. - Added option
-a --all
to thellms-env ps
command to allow listing the status of stopped containers.
- Added utility function
LLMS_Unit_Test_Util::get_private_property_value()
.
- Added assertions for testing against LifterLMS notices added via
llms_add_notice()
.
- Added
llms-env
, a set of tools and configurations for manager a simple Docker service. Useful for e2e testing.
- Added assertions for determining if assets are registered and/or enqueued with the WP asset dependency classes.
- 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.
- Unset mocked cookies
$_COOKIE
superglobal when unsetting mock cookies.
- Also set the
$_COOKIE
superglobal when setting mock cookies.
- Add
LLMS_Tests_Cookie
class to mock and test cookies set byllms_setcookie()
.
- Allow usage of
LLMS_Unit_Test_Util::call_method()
on static class methods.
- Create plugin directory reference with
getcwd()
.
- Added method to automate a LifterLMS quiz for a given user.
- Added string assertion methods
- added order factory
- Added output assertion unit test case methods.
- Separated unit test methods into traits.
- Load add-on framework functions early with core framework functions
- Recursively load framework functions from subdirectories
- Added exception test cases.
- Added additional WP_Error assertions.