From 0d81dcbfb1dd4dbea0d6ea68c04fa5061c760f02 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 18 Dec 2019 00:24:03 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/abstract-testcase.php | 1 - .../factory/class-wp-unittest-factory-callback-after-create.php | 2 +- .../includes/factory/class-wp-unittest-factory-for-term.php | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/includes/abstract-testcase.php b/tests/phpunit/includes/abstract-testcase.php index 64c3eddbaa..d18a584a7d 100644 --- a/tests/phpunit/includes/abstract-testcase.php +++ b/tests/phpunit/includes/abstract-testcase.php @@ -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. * diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php index 8becb3239f..5f544e5569 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php @@ -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. * diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php index ca331f18d4..bc81c8d0a2 100644 --- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php +++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php @@ -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 {