Changeset 63333
- Timestamp:
- 08/21/2026 04:09:21 PM (8 weeks ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 29 edited
-
includes/factory/class-wp-unittest-factory-callback-after-create.php (modified) (1 diff)
-
includes/factory/class-wp-unittest-factory-for-attachment.php (modified) (2 diffs)
-
includes/factory/class-wp-unittest-factory-for-blog.php (modified) (2 diffs)
-
includes/factory/class-wp-unittest-factory-for-bookmark.php (modified) (3 diffs)
-
includes/factory/class-wp-unittest-factory-for-comment.php (modified) (4 diffs)
-
includes/factory/class-wp-unittest-factory-for-network.php (modified) (2 diffs)
-
includes/factory/class-wp-unittest-factory-for-post.php (modified) (3 diffs)
-
includes/factory/class-wp-unittest-factory-for-term.php (modified) (4 diffs)
-
includes/factory/class-wp-unittest-factory-for-thing.php (modified) (6 diffs)
-
includes/factory/class-wp-unittest-factory-for-user.php (modified) (3 diffs)
-
tests/ajax/wpAjaxCropImage.php (modified) (1 diff)
-
tests/ajax/wpAjaxWpPrivacyErasePersonalData.php (modified) (7 diffs)
-
tests/ajax/wpAjaxWpPrivacyExportPersonalData.php (modified) (7 diffs)
-
tests/block-supports/aria-label.php (modified) (1 diff)
-
tests/block-supports/shadow.php (modified) (1 diff)
-
tests/blocks/wpBlockType.php (modified) (1 diff)
-
tests/customize/manager.php (modified) (3 diffs)
-
tests/customize/selective-refresh-ajax.php (modified) (1 diff)
-
tests/customize/setting.php (modified) (2 diffs)
-
tests/functions.php (modified) (1 diff)
-
tests/html-api/wpHtmlProcessorWebPlatformTests.php (modified) (2 diffs)
-
tests/image/editor.php (modified) (1 diff)
-
tests/kses/wpFilterGlobalStylesPost.php (modified) (1 diff)
-
tests/post/metaRevisions.php (modified) (1 diff)
-
tests/privacy/wpPrivacyDeleteOldExportFiles.php (modified) (1 diff)
-
tests/rest-api/rest-sidebars-controller.php (modified) (1 diff)
-
tests/rest-api/rest-widgets-controller.php (modified) (1 diff)
-
tests/rest-api/wpRestMenuItemsController.php (modified) (1 diff)
-
tests/term/wpGenerateTagCloud.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php
r55019 r63333 25 25 * 26 26 * @param int $object_id ID of the object to apply the callback on. 27 *28 27 * @return mixed Updated object field. 29 28 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-attachment.php
r60289 r63333 27 27 * @param int $legacy_parent Deprecated. 28 28 * @param array $legacy_args Deprecated. 29 *30 29 * @return int|WP_Error The attachment ID on success, WP_Error object on failure. 31 30 */ … … 59 58 * The name of the file will be used as the attachment name. 60 59 * @param int $parent_post_id ID of the post to attach the file to. 61 *62 60 * @return int|WP_Error The attachment ID on success, WP_Error object on failure. 63 61 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-blog.php
r56943 r63333 28 28 * 29 29 * @param array $args Arguments for the site object. 30 *31 30 * @return int|WP_Error The site ID on success, WP_Error object on failure. 32 31 */ … … 81 80 * 82 81 * @param int $blog_id ID of the site to retrieve. 83 *84 82 * @return WP_Site|null The site object on success, null on failure. 85 83 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-bookmark.php
r55019 r63333 30 30 * 31 31 * @param array $args Arguments for the link object. 32 *33 32 * @return int|WP_Error The link ID on success, WP_Error object on failure. 34 33 */ … … 45 44 * @param int $link_id ID of the link to update. 46 45 * @param array $fields The fields to update. 47 *48 46 * @return int|WP_Error The link ID on success, WP_Error object on failure. 49 47 */ … … 66 64 * 67 65 * @param int $link_id ID of the link to retrieve. 68 *69 66 * @return object|null The link object on success, null on failure. 70 67 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-comment.php
r55019 r63333 32 32 * 33 33 * @param array $args The comment details. 34 *35 34 * @return int|WP_Error The comment ID on success, WP_Error object on failure. 36 35 */ … … 59 58 * @param int $comment_id The comment ID. 60 59 * @param array $fields The comment details. 61 *62 60 * @return int|WP_Error The value 1 if the comment was updated, 0 if not updated. 63 61 * WP_Error object on failure. … … 77 75 * @param array $args The comment details. 78 76 * @param null $generation_definitions Default values. 79 *80 77 * @return int[] Array with the comment IDs. 81 78 */ … … 91 88 * 92 89 * @param int $comment_id ID of the comment to retrieve. 93 *94 90 * @return WP_Comment|null WP_Comment object on success, null on failure. 95 91 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-network.php
r56943 r63333 31 31 * 32 32 * @param array $args Arguments for the network object. 33 *34 33 * @return int|WP_Error The network ID on success, WP_Error object on failure. 35 34 */ … … 75 74 * 76 75 * @param int $network_id ID of the network to retrieve. 77 *78 76 * @return WP_Network|null The network object on success, null on failure. 79 77 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-post.php
r55019 r63333 31 31 * 32 32 * @param array $args Array with elements for the post. 33 *34 33 * @return int|WP_Error The post ID on success, WP_Error object on failure. 35 34 */ … … 46 45 * @param int $post_id ID of the post to update. 47 46 * @param array $fields Post data. 48 *49 47 * @return int|WP_Error The post ID on success, WP_Error object on failure. 50 48 */ … … 60 58 * 61 59 * @param int $post_id ID of the post to retrieve. 62 *63 60 * @return WP_Post|null WP_Post object on success, null on failure. 64 61 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php
r61424 r63333 32 32 * 33 33 * @param array $args Array of arguments for inserting a term. 34 *35 34 * @return int|WP_Error The term ID on success, WP_Error object on failure. 36 35 */ … … 54 53 * @param int|object $term The term to update. 55 54 * @param array $fields Array of arguments for updating a term. 56 *57 55 * @return int|WP_Error The term ID on success, WP_Error object on failure. 58 56 */ … … 100 98 * @param array $args Array or string of arguments for inserting a term. 101 99 * @param null $generation_definitions The default values. 102 *103 100 * @return WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure. 104 101 */ … … 121 118 * 122 119 * @param int $term_id ID of the term to retrieve. 123 *124 120 * @return WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure. 125 121 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php
r57987 r63333 35 35 * 36 36 * @param array $args The arguments. 37 *38 37 * @return int|WP_Error The object ID on success, WP_Error object on failure. 39 38 */ … … 47 46 * @param int $object_id The object ID. 48 47 * @param array $fields The values to update. 49 *50 48 * @return int|WP_Error The object ID on success, WP_Error object on failure. 51 49 */ … … 116 114 * 117 115 * @param int $object_id The object ID. 118 *119 116 * @return mixed The object. Can be anything. 120 117 */ … … 198 195 * @param WP_UnitTest_Factory_Callback_After_Create[] $callbacks Array with callback functions. 199 196 * @param int $object_id ID of the object to apply callbacks for. 200 *201 197 * @return array The altered fields. 202 198 */ … … 217 213 * 218 214 * @param callable $callback The callback function. 219 *220 215 * @return WP_UnitTest_Factory_Callback_After_Create 221 216 */ … … 230 225 * 231 226 * @param array|object|string|mixed $value The value to add slashes to. 232 *233 227 * @return array|string The value with the possibly applied slashes. 234 228 */ -
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-user.php
r55019 r63333 28 28 * 29 29 * @param array $args The user data to insert. 30 *31 30 * @return int|WP_Error The user ID on success, WP_Error object on failure. 32 31 */ … … 42 41 * @param int $user_id ID of the user to update. 43 42 * @param array $fields The user data to update. 44 *45 43 * @return int|WP_Error The user ID on success, WP_Error object on failure. 46 44 */ … … 56 54 * 57 55 * @param int $user_id ID of the user ID to retrieve. 58 *59 56 * @return WP_User The user object. 60 57 */ -
trunk/tests/phpunit/tests/ajax/wpAjaxCropImage.php
r54722 r63333 215 215 /** 216 216 * @param WP_Post $attachment 217 *218 217 * @return string 219 218 */ -
trunk/tests/phpunit/tests/ajax/wpAjaxWpPrivacyErasePersonalData.php
r55337 r63333 171 171 * 172 172 * @param array $erasers List of data erasers. 173 *174 173 * @return array Array of data erasers. 175 174 */ … … 198 197 * 199 198 * @param array $erasers Erasers. 200 *201 199 * @return array Erasers. 202 200 */ … … 230 228 * @param string $email_address The requester's email address. 231 229 * @param int $page Page number. 232 *233 230 * @return array Export data. 234 231 */ … … 640 637 * @param string $email_address The requester's email address. 641 638 * @param int $page Page number. 642 *643 639 * @return array Export data. 644 640 */ … … 742 738 * @param int $request_id The privacy request post ID associated with this request. 743 739 * @param string $eraser_key The key (slug) of the eraser that provided this data. 744 *745 740 * @return array Filtered erase response. 746 741 */ … … 761 756 * 762 757 * @param array $erasers An array of personal data erasers. 763 *764 758 * @return array An array of personal data erasers. 765 759 */ … … 779 773 * @param string $email_address The comment author email address. 780 774 * @param int $page Page number. 781 *782 775 * @return array Erase data. 783 776 */ -
trunk/tests/phpunit/tests/ajax/wpAjaxWpPrivacyExportPersonalData.php
r55337 r63333 205 205 * 206 206 * @param array $exporters List of data exporters. 207 *208 207 * @return array List of data exporters. 209 208 */ … … 580 579 * @param string $email_address The requester's email address. 581 580 * @param int $page Page number. 582 *583 581 * @return array Export data. 584 582 */ … … 616 614 * @param string $email_address The requester's email address. 617 615 * @param int $page Page number. 618 *619 616 * @return array Export data. 620 617 */ … … 651 648 * @param string $email_address The requester's email address. 652 649 * @param int $page Page number. 653 *654 650 * @return array Export data. 655 651 */ … … 730 726 * @param bool $send_as_email Whether the final results of the export should be emailed to the user. 731 727 * @param string $exporter_key The key (slug) of the exporter that provided this data. 732 *733 728 * @return array The personal data for the given exporter and page. 734 729 */ … … 758 753 * 759 754 * @param array $exporters An array of personal data exporters. 760 *761 755 * @return array An array of personal data exporters. 762 756 */ … … 776 770 * @param string $email_address The requester's email address. 777 771 * @param int $page Page number. 778 *779 772 * @return array Export data response. 780 773 */ -
trunk/tests/phpunit/tests/block-supports/aria-label.php
r61671 r63333 27 27 * @param string $block_name Name for the test block. 28 28 * @param array $supports Array defining block support configuration. 29 *30 29 * @return WP_Block_Type The block type for the newly registered test block. 31 30 */ -
trunk/tests/phpunit/tests/block-supports/shadow.php
r58318 r63333 27 27 * @param string $block_name Name for the test block. 28 28 * @param array $supports Array defining block support configuration. 29 *30 29 * @return WP_Block_Type The block type for the newly registered test block. 31 30 */ -
trunk/tests/phpunit/tests/blocks/wpBlockType.php
r62969 r63333 589 589 * @param array $variations Block variations before filter. 590 590 * @param WP_Block_Type $block_type Block type. 591 *592 591 * @return array Block variations after filter. 593 592 */ -
trunk/tests/phpunit/tests/customize/manager.php
r62745 r63333 3253 3253 * @param array $components Components. 3254 3254 * @param WP_Customize_Manager $customize_manager Manager. 3255 *3256 3255 * @return array Components. 3257 3256 */ … … 3270 3269 * @param array $components Components. 3271 3270 * @param WP_Customize_Manager $customize_manager Manager. 3272 *3273 3271 * @return array Components. 3274 3272 */ … … 3562 3560 * 3563 3561 * @param array $devices The list of devices. 3564 *3565 3562 * @return array 3566 3563 */ -
trunk/tests/phpunit/tests/customize/selective-refresh-ajax.php
r60253 r63333 360 360 * @param array $partial_args Partial args. 361 361 * @param string $partial_id Partial ID. 362 *363 362 * @return array|false Args. 364 363 */ -
trunk/tests/phpunit/tests/customize/setting.php
r62489 r63333 353 353 * @param mixed $default_value 354 354 * @param WP_Customize_Setting $setting 355 *356 355 * @return mixed|null 357 356 */ … … 742 741 * @param WP_Error $validity Validity. 743 742 * @param string $value Value. 744 *745 743 * @return WP_Error 746 744 */ -
trunk/tests/phpunit/tests/functions.php
r63312 r63333 420 420 * 421 421 * @param array $formats 422 *423 422 * @return array 424 423 */ -
trunk/tests/phpunit/tests/html-api/wpHtmlProcessorWebPlatformTests.php
r62734 r63333 138 138 * @param string|null $test_context_element Context element for fragment parsing, or null for full document parsing. 139 139 * @param string $test_name Test name. 140 *141 140 * @return bool True if the test case should be skipped. False otherwise. 142 141 */ … … 354 353 * 355 354 * @param string $filename Path to `.dat` file with test cases. 356 *357 355 * @return Generator<int, array{ 358 356 * non-negative-int, // Line number. -
trunk/tests/phpunit/tests/image/editor.php
r60729 r63333 173 173 * 174 174 * @param array $formats 175 *176 175 * @return array 177 176 */ -
trunk/tests/phpunit/tests/kses/wpFilterGlobalStylesPost.php
r54382 r63333 72 72 * 73 73 * @param array $theme_data Theme data to filter. 74 *75 74 * @return array Filtered theme data. 76 75 */ -
trunk/tests/phpunit/tests/post/metaRevisions.php
r59979 r63333 16 16 * 17 17 * @param array $keys The array of revisioned keys. 18 *19 18 * @return array 20 19 */ -
trunk/tests/phpunit/tests/privacy/wpPrivacyDeleteOldExportFiles.php
r58221 r63333 97 97 * 98 98 * @param string $exports_dir The default personal data export directory. 99 *100 99 * @return string The path to a folder that doesn't exist. 101 100 */ -
trunk/tests/phpunit/tests/rest-api/rest-sidebars-controller.php
r59970 r63333 1130 1130 * 1131 1131 * @param array $data Array of data. 1132 *1133 1132 * @return array 1134 1133 */ -
trunk/tests/phpunit/tests/rest-api/rest-widgets-controller.php
r62817 r63333 1729 1729 * 1730 1730 * @param array $data Array of data. 1731 *1732 1731 * @return array 1733 1732 */ -
trunk/tests/phpunit/tests/rest-api/wpRestMenuItemsController.php
r59718 r63333 1012 1012 /** 1013 1013 * @param array $args Override params. 1014 *1015 1014 * @return mixed 1016 1015 */ -
trunk/tests/phpunit/tests/term/wpGenerateTagCloud.php
r60251 r63333 301 301 * 302 302 * @param array $get_terms_args Options passed to get_terms() 303 *304 303 * @return array 305 304 */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)