Docs: Add @method notation for WP_UnitTest_Factory_For_Term::create_and_get() for consistency with other factories.

See #48303.

git-svn-id: https://develop.svn.wordpress.org/trunk@46986 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-12-18 00:24:03 +00:00
parent a3e674d4f9
commit 0d81dcbfb1
3 changed files with 2 additions and 2 deletions

View File

@ -610,7 +610,6 @@ abstract class WP_UnitTestCase_Base extends PHPUnit_Framework_TestCase {
$this->assertNotInstanceOf( 'WP_Error', $actual, $message );
}
/**
* Asserts that the given value is an instance of IXR_Error.
*

View File

@ -17,7 +17,7 @@ class WP_UnitTest_Factory_Callback_After_Create {
}
/**
* Calls the set callback on given object.
* Calls the set callback on a given object.
*
* @param mixed $object The object to apply the callback on.
*

View File

@ -7,6 +7,7 @@
* as a way to indicate expected return values from the given factory methods.
*
* @method int create( $args = array(), $generation_definitions = null )
* @method WP_Term create_and_get( $args = array(), $generation_definitions = null )
* @method int[] create_many( $count, $args = array(), $generation_definitions = null )
*/
class WP_UnitTest_Factory_For_Term extends WP_UnitTest_Factory_For_Thing {