Changeset 62957
- Timestamp:
- 07/31/2026 02:15:27 PM (8 weeks ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 15 edited
-
admin/includesFile.php (modified) (1 diff)
-
dependencies/scripts.php (modified) (1 diff)
-
filesystem/wpFilesystemDirect/delete.php (modified) (1 diff)
-
filesystem/wpFilesystemDirect/isDir.php (modified) (1 diff)
-
functions/allowedProtocols.php (modified) (1 diff)
-
functions/doEnclose.php (modified) (1 diff)
-
image/meta.php (modified) (1 diff)
-
multisite/updateBlogDetails.php (modified) (1 diff)
-
post.php (modified) (1 diff)
-
privacy/wpPrivacyProcessPersonalDataExportPage.php (modified) (4 diffs)
-
rest-api/rest-block-type-controller.php (modified) (1 diff)
-
rest-api/rest-comments-controller.php (modified) (1 diff)
-
rest-api/rest-search-controller.php (modified) (2 diffs)
-
rest-api/wpRestBlockPatternCategoriesController.php (modified) (1 diff)
-
rewrite.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesFile.php
r59934 r62957 400 400 * @ticket 54738 401 401 * 402 * @param string $filterA callback containing a fake Content-Type header.403 * @param string $extThe expected file extension to match.402 * @param callable $filter A callback containing a fake Content-Type header. 403 * @param string $extension The expected file extension to match. 404 404 */ 405 405 public function test_download_url_should_use_the_content_type_header_to_set_extension_of_a_file_if_extension_was_not_determined( $filter, $extension ) { -
trunk/tests/phpunit/tests/dependencies/scripts.php
r62723 r62957 558 558 * @dataProvider get_data_to_filter_eligible_strategies 559 559 * 560 * @param callable $set_up Set up. 561 * @param bool $async_only Async only. 562 * @param bool $expected Expected return value. 560 * @param callable $set_up Set up. 561 * @param string[] $expected Expected return value. 563 562 */ 564 563 public function test_filter_eligible_strategies( $set_up, $expected ) { -
trunk/tests/phpunit/tests/filesystem/wpFilesystemDirect/delete.php
r57753 r62957 70 70 * @dataProvider data_should_delete_a_file 71 71 * 72 * @param string $ key The key for the file in `self::$filesystem_structure`.72 * @param string $file The key for the file in `self::$file_structure`. 73 73 */ 74 74 public function test_should_delete_a_file( $file ) { -
trunk/tests/phpunit/tests/filesystem/wpFilesystemDirect/isDir.php
r57753 r62957 36 36 * 37 37 * @param string $path The path to check. 38 * @param string $type The type of resource. Accepts 'f' or 'd'.39 * Used to invert $expected due to data provider setup.40 38 */ 41 39 public function test_should_determine_that_a_path_is_not_a_directory( $path ) { -
trunk/tests/phpunit/tests/functions/allowedProtocols.php
r57735 r62957 28 28 * @dataProvider data_example_urls 29 29 * 30 * @param string The scheme.31 * @param string Example URL.30 * @param string $protocol The scheme. 31 * @param string $url Example URL. 32 32 */ 33 33 public function test_allowed_protocols( $protocol, $url ) { -
trunk/tests/phpunit/tests/functions/doEnclose.php
r56971 r62957 222 222 * @since 5.3.0 223 223 * 224 * @param array $ post_links An array of enclosure links.225 * @param int $post_id Post ID.224 * @param array $enclosure_links An array of enclosure links. 225 * @param int $post_id Post ID. 226 226 * @return array An array of enclosure links. 227 227 */ -
trunk/tests/phpunit/tests/image/meta.php
r61841 r62957 185 185 * @ticket 52922 186 186 * 187 * @param string Stream's URI.188 * @param array Expected metadata.187 * @param string $file Stream's URI. 188 * @param array $expected Expected metadata. 189 189 */ 190 190 public function test_stream( $file, $expected ) { -
trunk/tests/phpunit/tests/multisite/updateBlogDetails.php
r62237 r62957 54 54 * @param string $flag The name of the flag being set or unset on a site. 55 55 * @param string $flag_value '0' or '1'. The value of the flag being set. 56 * @param string $ actionThe hook expected to fire for the flag name and flag combination.56 * @param string $hook The hook expected to fire for the flag name and flag combination. 57 57 * 58 58 * @dataProvider data_flag_hooks -
trunk/tests/phpunit/tests/post.php
r61417 r62957 669 669 * @ticket 52007 670 670 * @covers ::stick_post 671 *672 * @param mixed $stick Value to pass to stick_post().673 671 */ 674 672 public function test_stick_post_removes_duplicate_post_ids_when_adding_new_value() { -
trunk/tests/phpunit/tests/privacy/wpPrivacyProcessPersonalDataExportPage.php
r57099 r62957 359 359 * @dataProvider data_send_as_email_options 360 360 * 361 * @param bool Whether the final results of the export should be emailed to the user.361 * @param bool $send_as_email Whether the final results of the export should be emailed to the user. 362 362 */ 363 363 public function test_send_error_when_invalid_request_id( $send_as_email ) { … … 389 389 * @dataProvider data_send_as_email_options 390 390 * 391 * @param bool Whether the final results of the export should be emailed to the user.391 * @param bool $send_as_email Whether the final results of the export should be emailed to the user. 392 392 */ 393 393 public function test_send_error_when_invalid_request_action_name( $send_as_email ) { … … 421 421 * @dataProvider data_send_as_email_options 422 422 * 423 * @param bool Whether the final results of the export should be emailed to the user. 424 * 423 * @param bool $send_as_email Whether the final results of the export should be emailed to the user. 425 424 */ 426 425 public function test_raw_data_post_meta( $send_as_email ) { … … 462 461 * @dataProvider data_send_as_email_options 463 462 * 464 * @param bool Whether the final results of the export should be emailed to the user.463 * @param bool $send_as_email Whether the final results of the export should be emailed to the user. 465 464 */ 466 465 public function test_add_post_meta_with_groups_data_only_available_when_export_file_generated( $send_as_email ) { -
trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php
r59970 r62957 751 751 752 752 /** 753 * @dataProvider data_readable_http_methods754 753 * @ticket 47620 755 754 * @ticket 56481 756 *757 * @param string $method HTTP method to use.758 755 */ 759 756 public function test_prepare_item() { -
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r62829 r62957 3647 3647 * Create a test post with note. 3648 3648 * 3649 * @param int $user_id Post author's user ID.3649 * @param string $role User role to assign the post author. 3650 3650 * @return int Post ID. 3651 3651 */ -
trunk/tests/phpunit/tests/rest-api/rest-search-controller.php
r59899 r62957 361 361 * @param string $method HTTP method to use. 362 362 */ 363 public function test_get_items_search_type_post_subtype_invalid( ) {363 public function test_get_items_search_type_post_subtype_invalid( $method ) { 364 364 $response = $this->do_request_with_params( 365 365 array( … … 367 367 'type' => 'post', 368 368 'subtype' => 'invalid', 369 ) 369 ), 370 $method 370 371 ); 371 372 -
trunk/tests/phpunit/tests/rest-api/wpRestBlockPatternCategoriesController.php
r60729 r62957 142 142 /** 143 143 * @ticket 56481 144 *145 * @param string $path The path to test.146 144 */ 147 145 public function test_head_request_with_specified_fields_returns_success_response() { -
trunk/tests/phpunit/tests/rewrite.php
r54364 r62957 168 168 * @param string $path Path relative to the home URL. Blank string if no path is specified. 169 169 * @param string|null $orig_scheme Scheme to give the home URL context. 170 * @param int|null $ blog_idSite ID, or null for the current site.170 * @param int|null $_blog_id Site ID, or null for the current site. 171 171 * @return string The complete home URL including scheme and path. 172 172 */
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)