Build/Test tools: Document the return value of `WP_UnitTestCase::factory()`.

See #41017


git-svn-id: https://develop.svn.wordpress.org/trunk@41945 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-10-19 15:32:07 +00:00
parent 3507f4798f
commit 2364d616b9
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase {
}
}
/**
* Fetches the factory object for generating WordPress fixtures.
*
* @return WP_UnitTest_Factory The fixture factory.
*/
protected static function factory() {
static $factory = null;
if ( ! $factory ) {