Changeset 54722
- Timestamp:
- 10/30/2022 01:05:06 AM (2 years ago)
- Location:
- trunk/tests/phpunit/tests/ajax
- Files:
-
- 1 edited
- 21 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/wpAjaxAddMeta.php
r54721 r54722 10 10 * 11 11 * @group ajax 12 * 13 * @covers ::wp_ajax_add_meta 12 14 */ 13 class Tests_Ajax_AddMeta extends WP_Ajax_UnitTestCase { 15 class Tests_Ajax_wpAjaxAddMeta extends WP_Ajax_UnitTestCase { 16 14 17 /** 15 18 * @ticket 43559 16 19 * 17 * @covers ::wp_ajax_add_meta18 20 * @covers ::add_post_meta 19 21 */ … … 44 46 * @ticket 43559 45 47 * 46 * @covers ::wp_ajax_add_meta47 48 * @covers ::update_metadata_by_mid 48 49 */ -
trunk/tests/phpunit/tests/ajax/wpAjaxAddTag.php
r54721 r54722 10 10 * 11 11 * @group ajax 12 * 13 * @covers ::wp_ajax_add_tag 12 14 */ 13 class Tests_Ajax_ AddTag extends WP_Ajax_UnitTestCase {15 class Tests_Ajax_wpAjaxAddTag extends WP_Ajax_UnitTestCase { 14 16 15 17 /** … … 18 20 * @ticket 42937 19 21 * 20 * @covers ::wp_ajax_add_tag21 22 * @covers ::wp_insert_term 22 23 * … … 94 95 /** 95 96 * @ticket 42937 96 *97 * @covers ::wp_ajax_add_tag98 97 */ 99 98 public function test_adding_category_without_capability_should_error() { … … 115 114 * @ticket 42937 116 115 * 117 * @covers ::wp_ajax_add_tag118 116 * @covers ::wp_insert_term 119 117 */ -
trunk/tests/phpunit/tests/ajax/wpAjaxAjaxTagSearch.php
r54721 r54722 9 9 * Testing Ajax tag search functionality. 10 10 * 11 * @package 11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 15 16 * 16 17 * @covers ::wp_ajax_ajax_tag_search 17 18 */ 18 class Tests_Ajax_ TagSearch extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxAjaxTagSearch extends WP_Ajax_UnitTestCase { 19 20 20 21 /** -
trunk/tests/phpunit/tests/ajax/wpAjaxCropImage.php
r53441 r54722 12 12 * 13 13 * @group ajax 14 * 14 15 * @covers ::wp_ajax_crop_image 15 16 */ -
trunk/tests/phpunit/tests/ajax/wpAjaxDeleteComment.php
r54721 r54722 9 9 * Testing Ajax comment functionality. 10 10 * 11 * @package 11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 16 * 17 * @covers ::wp_ajax_delete_comment 15 18 */ 16 class Tests_Ajax_ DeleteComment extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxDeleteComment extends WP_Ajax_UnitTestCase { 17 20 18 21 /** … … 58 61 * Expects test to pass. 59 62 * 60 * @covers ::wp_ajax_delete_comment61 63 * @covers ::_wp_ajax_delete_comment_response 62 64 * … … 120 122 * Expects test to fail. 121 123 * 122 * @covers ::wp_ajax_delete_comment123 *124 124 * @param WP_Comment $comment Comment object. 125 125 * @param string $action Action: 'trash', 'untrash', etc. … … 154 154 * Expects test to fail. 155 155 * 156 * @covers ::wp_ajax_delete_comment157 *158 156 * @param WP_Comment $comment Comment object. 159 157 * @param string $action Action: 'trash', 'untrash', etc. … … 186 184 * 187 185 * Expects test to fail. 188 *189 * @covers ::wp_ajax_delete_comment190 186 * 191 187 * @param WP_Comment $comment Comment object. … … 226 222 * Expects test to fail. 227 223 * 228 * @covers ::wp_ajax_delete_comment229 *230 224 * @param WP_Comment $comment Comment object. 231 225 * @param string $action Action: 'trash', 'untrash', etc. … … 276 270 * Deletes a comment as an administrator (expects success). 277 271 * 278 * @covers ::wp_ajax_delete_comment279 272 * @covers ::_wp_ajax_delete_comment_response 280 273 */ … … 294 287 /** 295 288 * Deletes a comment as a subscriber (expects permission denied). 296 *297 * @covers ::wp_ajax_delete_comment298 289 */ 299 290 public function test_ajax_comment_trash_actions_as_subscriber() { … … 313 304 * Deletes a comment with no ID. 314 305 * 315 * @covers ::wp_ajax_delete_comment316 306 * @covers ::_wp_ajax_delete_comment_response 317 307 */ … … 331 321 /** 332 322 * Deletes a comment with a bad nonce. 333 *334 * @covers ::wp_ajax_delete_comment335 323 */ 336 324 public function test_ajax_trash_comment_bad_nonce() { … … 349 337 /** 350 338 * Tests trashing an already trashed comment, etc. 351 *352 * @covers ::wp_ajax_delete_comment353 339 */ 354 340 public function test_ajax_trash_double_action() { -
trunk/tests/phpunit/tests/ajax/wpAjaxDeletePlugin.php
r54721 r54722 12 12 * @covers ::wp_ajax_delete_plugin 13 13 */ 14 class Tests_Ajax_ Delete_Plugin extends WP_Ajax_UnitTestCase {14 class Tests_Ajax_wpAjaxDeletePlugin extends WP_Ajax_UnitTestCase { 15 15 16 16 public function test_missing_nonce() { … … 131 131 * @group ms-excluded 132 132 * 133 * @covers ::wp_ajax_delete_plugin134 133 * @covers ::delete_plugins 135 134 */ -
trunk/tests/phpunit/tests/ajax/wpAjaxDimComment.php
r54721 r54722 9 9 * Testing Ajax comment functionality 10 10 * 11 * @package 11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 15 16 * 16 17 * @covers ::wp_ajax_dim_comment 17 18 */ 18 class Tests_Ajax_ DimComment extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxDimComment extends WP_Ajax_UnitTestCase { 19 20 20 21 /** -
trunk/tests/phpunit/tests/ajax/wpAjaxEditComment.php
r54721 r54722 9 9 * Testing Ajax comment functionality. 10 10 * 11 * @package 11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 15 16 * 16 17 * @covers ::wp_ajax_edit_comment 17 18 */ 18 class Tests_Ajax_ EditComment extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxEditComment extends WP_Ajax_UnitTestCase { 19 20 20 21 /** -
trunk/tests/phpunit/tests/ajax/wpAjaxGetComments.php
r54721 r54722 9 9 * Testing Ajax comment functionality. 10 10 * 11 * @package 11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 15 16 * 16 17 * @covers ::wp_ajax_get_comments 17 18 */ 18 class Tests_Ajax_ GetComments extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxGetComments extends WP_Ajax_UnitTestCase { 19 20 20 21 /** -
trunk/tests/phpunit/tests/ajax/wpAjaxHeartbeat.php
r54721 r54722 9 9 * Testing Ajax save draft functionality. 10 10 * 11 * @package 11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 16 * 17 * @covers ::wp_ajax_heartbeat 15 18 */ 16 class Tests_Ajax_ Autosaveextends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxHeartbeat extends WP_Ajax_UnitTestCase { 17 20 18 21 /** … … 41 44 /** 42 45 * Tests autosaving a post. 43 *44 * @covers ::wp_ajax_heartbeat45 46 */ 46 47 public function test_autosave_post() { … … 84 85 /** 85 86 * Tests autosaving a locked post. 86 *87 * @covers ::wp_ajax_heartbeat88 87 */ 89 88 public function test_autosave_locked_post() { … … 137 136 /** 138 137 * Tests with an invalid nonce. 139 *140 * @covers ::wp_ajax_heartbeat141 138 */ 142 139 public function test_with_invalid_nonce() { -
trunk/tests/phpunit/tests/ajax/wpAjaxImageEditor.php
r54721 r54722 8 8 * Testing Ajax media editing. 9 9 * 10 * @package 10 * @package WordPress 11 11 * @subpackage UnitTests 12 * @since 3.5.0 13 * @group ajax 12 * @since 3.5.0 14 13 * 15 * @requires function imagejpeg 14 * @group ajax 15 * 16 * @covers ::wp_ajax_image_editor 17 * 18 * @requires function imagejpeg 16 19 */ 17 class Tests_Ajax_ MediaEditextends WP_Ajax_UnitTestCase {20 class Tests_Ajax_wpAjaxImageEditor extends WP_Ajax_UnitTestCase { 18 21 19 22 /** -
trunk/tests/phpunit/tests/ajax/wpAjaxInlineSave.php
r54721 r54722 10 10 * 11 11 * @group ajax 12 * 13 * @covers ::wp_ajax_inline_save 12 14 */ 13 class Tests_Ajax_ QuickEditextends WP_Ajax_UnitTestCase {15 class Tests_Ajax_wpAjaxInlineSave extends WP_Ajax_UnitTestCase { 14 16 15 17 /** 16 18 * @ticket 26948 17 19 * 18 * @covers ::wp_ajax_inline_save19 20 * @covers ::edit_post 20 21 */ -
trunk/tests/phpunit/tests/ajax/wpAjaxReplytoComment.php
r54721 r54722 9 9 * Testing Ajax comment functionality. 10 10 * 11 * @package 11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 15 16 * 16 17 * @covers ::wp_ajax_replyto_comment 17 18 */ 18 class Tests_Ajax_ ReplytoComment extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxReplytoComment extends WP_Ajax_UnitTestCase { 19 20 20 21 /** -
trunk/tests/phpunit/tests/ajax/wpAjaxResponse.php
r54721 r54722 3 3 * Testing Ajax response class 4 4 * 5 * @package 5 * @package WordPress 6 6 * @subpackage UnitTests 7 * @since 3.5.0 8 * @group ajax 7 * @since 3.5.0 8 * 9 * @group ajax 9 10 * 10 11 * @covers WP_Ajax_Response::send 11 12 */ 12 class Tests_Ajax_ Response extends WP_UnitTestCase {13 class Tests_Ajax_wpAjaxResponse extends WP_UnitTestCase { 13 14 14 15 /** -
trunk/tests/phpunit/tests/ajax/wpAjaxSendAttachmentToEditor.php
r54721 r54722 9 9 * 10 10 * @group ajax 11 * 12 * @covers ::wp_ajax_send_attachment_to_editor 11 13 */ 12 class Tests_Ajax_Attachments extends WP_Ajax_UnitTestCase { 14 class Tests_Ajax_wpAjaxSendAttachmentToEditor extends WP_Ajax_UnitTestCase { 15 13 16 /** 14 17 * @ticket 36578 15 18 * 16 * @covers ::wp_ajax_send_attachment_to_editor17 19 * @covers ::get_image_send_to_editor 18 20 */ … … 59 61 * @ticket 36578 60 62 * @group ms-excluded 61 *62 * @covers ::wp_ajax_send_attachment_to_editor63 63 */ 64 64 public function test_wp_ajax_send_attachment_to_editor_should_return_a_link() { -
trunk/tests/phpunit/tests/ajax/wpAjaxUpdatePlugin.php
r54721 r54722 12 12 * @covers ::wp_ajax_update_plugin 13 13 */ 14 class Tests_Ajax_ Update_Plugin extends WP_Ajax_UnitTestCase {14 class Tests_Ajax_wpAjaxUpdatePlugin extends WP_Ajax_UnitTestCase { 15 15 16 16 public function test_missing_nonce() { -
trunk/tests/phpunit/tests/ajax/wpAjaxUpdateTheme.php
r54721 r54722 6 6 7 7 /** 8 * Testing Ajax handler for inst laling, updating, and deleting themes.8 * Testing Ajax handler for installing, updating, and deleting themes. 9 9 * 10 10 * @group ajax … … 12 12 * @covers ::wp_ajax_update_theme 13 13 */ 14 class Tests_Ajax_ Manage_Themesextends WP_Ajax_UnitTestCase {14 class Tests_Ajax_wpAjaxUpdateTheme extends WP_Ajax_UnitTestCase { 15 15 private $orig_theme_dir; 16 16 private $theme_root; -
trunk/tests/phpunit/tests/ajax/wpAjaxWpCompressionTest.php
r54721 r54722 9 9 * Testing Ajax compression test functionality. 10 10 * 11 * @package 11 * @package WordPress 12 12 * @subpackage UnitTests 13 * @since 3.4.0 14 * @group ajax 13 * @since 3.4.0 14 * 15 * @group ajax 16 * 17 * @covers ::wp_ajax_wp_compression_test 15 18 */ 16 class Tests_Ajax_ CompressionTest extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxWpCompressionTest extends WP_Ajax_UnitTestCase { 17 20 18 21 /** 19 22 * Test as a logged out user 20 *21 * @covers ::wp_ajax_wp_compression_test22 23 */ 23 24 public function test_logged_out() { … … 35 36 /** 36 37 * Fetch the test text 37 *38 * @covers ::wp_ajax_wp_compression_test39 38 */ 40 39 public function test_text() { … … 61 60 * 62 61 * @requires function gzdeflate 63 *64 * @covers ::wp_ajax_wp_compression_test65 62 */ 66 63 public function test_gzdeflate() { … … 88 85 * 89 86 * @requires function gzencode 90 *91 * @covers ::wp_ajax_wp_compression_test92 87 */ 93 88 public function test_gzencode() { … … 113 108 /** 114 109 * Fetch the test text (unknown encoding) 115 *116 * @covers ::wp_ajax_wp_compression_test117 110 */ 118 111 public function test_unknown_encoding() { … … 133 126 /** 134 127 * Set the 'can_compress_scripts' site option to true 135 *136 * @covers ::wp_ajax_wp_compression_test137 128 */ 138 129 public function test_set_yes() { … … 173 164 /** 174 165 * Set the 'can_compress_scripts' site option to false 175 *176 * @covers ::wp_ajax_wp_compression_test177 166 */ 178 167 public function test_set_no() { -
trunk/tests/phpunit/tests/ajax/wpAjaxWpPrivacyErasePersonalData.php
r54721 r54722 17 17 * @covers ::wp_ajax_wp_privacy_erase_personal_data 18 18 */ 19 class Tests_Ajax_ PrivacyErasePersonalData extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxWpPrivacyErasePersonalData extends WP_Ajax_UnitTestCase { 20 20 21 21 /** -
trunk/tests/phpunit/tests/ajax/wpAjaxWpPrivacyExportPersonalData.php
r54721 r54722 17 17 * @covers ::wp_ajax_wp_privacy_export_personal_data 18 18 */ 19 class Tests_Ajax_ PrivacyExportPersonalData extends WP_Ajax_UnitTestCase {19 class Tests_Ajax_wpAjaxWpPrivacyExportPersonalData extends WP_Ajax_UnitTestCase { 20 20 21 21 /** -
trunk/tests/phpunit/tests/ajax/wpCustomizeManager.php
r54721 r54722 3 3 * Testing Ajax customize manager functionality. 4 4 * 5 * @package 5 * @package WordPress 6 6 * @subpackage UnitTests 7 * @since 4.3.0 8 * @group ajax 7 * @since 4.3.0 8 * 9 * @group ajax 9 10 */ 10 class Tests_Ajax_ CustomizeManager extends WP_Ajax_UnitTestCase {11 class Tests_Ajax_wpCustomizeManager extends WP_Ajax_UnitTestCase { 11 12 12 13 /** -
trunk/tests/phpunit/tests/ajax/wpCustomizeNavMenus.php
r54721 r54722 3 3 * Testing Ajax customize menus functionality. 4 4 * 5 * @package 5 * @package WordPress 6 6 * @subpackage UnitTests 7 * @since 4.3.0 8 * @group ajax 7 * @since 4.3.0 8 * 9 * @group ajax 9 10 */ 10 class Tests_Ajax_ CustomizeMenus extends WP_Ajax_UnitTestCase {11 class Tests_Ajax_wpCustomizeNavMenus extends WP_Ajax_UnitTestCase { 11 12 12 13 /**
Note: See TracChangeset
for help on using the changeset viewer.