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:
parent
a3e674d4f9
commit
0d81dcbfb1
@ -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.
|
||||
*
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user