Skip to content

Commit

Permalink
Merge pull request #756 from defunctl/master
Browse files Browse the repository at this point in the history
Fix factory() return type in `WPTestCase`, so IDE autocompletion works
  • Loading branch information
lucatume authored Sep 13, 2024
2 parents 1f2c893 + b9dfd0b commit df0c38e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [unreleased] Unreleased

## Fixed

- Set proper factory() return type in `WPTestCase` class, so IDE autocompletion works (thanks @defunctl).

## [4.3.3] 2024-09-11;

## Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/TestCase/WPTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit df0c38e

Please sign in to comment.