diff --git a/CHANGELOG.md b/CHANGELOG.md index e93b12973..accec174d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [unreleased] Unreleased +## Fixed + +- Set proper `WPTetCase::factory()` return type, so IDE autocompletion works (thanks @defunctl). + ## [3.7.4] 2024-09-11; ## Fixed diff --git a/src/TestCase/WPTestCase.php b/src/TestCase/WPTestCase.php index 8e46a284a..21a6c8483 100644 --- a/src/TestCase/WPTestCase.php +++ b/src/TestCase/WPTestCase.php @@ -18,7 +18,7 @@ /** * @method static commit_transaction() * @method static delete_user($user_id) - * @method static factory() + * @method \WP_UnitTest_Factory factory() * @method static flush_cache() * @method static forceTicket($ticket) * @method static get_called_class()