Changeset 65286
- Timestamp:
- 11/05/2026 11:38:32 PM (34 hours ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 16 edited
-
abilities-api/wpRegisterCoreUsersAbility.php (modified) (1 diff)
-
admin/exportWp.php (modified) (1 diff)
-
admin/includesPost.php (modified) (1 diff)
-
admin/includesScreen.php (modified) (1 diff)
-
admin/includesTemplate.php (modified) (1 diff)
-
ajax/wpAjaxInlineSave.php (modified) (1 diff)
-
ajax/wpCustomizeNavMenus.php (modified) (1 diff)
-
entity-actions/registerCoreEntityActions.php (modified) (1 diff)
-
entity-fields/wpRegisterCoreFieldCollections.php (modified) (1 diff)
-
rest-api/rest-categories-controller.php (modified) (1 diff)
-
rest-api/rest-post-types-controller.php (modified) (1 diff)
-
rest-api/rest-tags-controller.php (modified) (1 diff)
-
rest-api/rest-taxonomies-controller.php (modified) (1 diff)
-
xmlrpc/wp/editTerm.php (modified) (1 diff)
-
xmlrpc/wp/getPostType.php (modified) (1 diff)
-
xmlrpc/wp/getTerms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/abilities-api/wpRegisterCoreUsersAbility.php
r65044 r65286 160 160 wp_unregister_ability_category( $ability_category->get_slug() ); 161 161 } 162 }163 164 public function tear_down(): void {165 unregister_post_type( 'not_viewable_pt' );166 unregister_post_type( 'public_pt' );167 unregister_post_type( 'private_pt' );168 169 parent::tear_down();170 162 } 171 163 -
trunk/tests/phpunit/tests/admin/exportWp.php
r64849 r65286 95 95 } 96 96 97 public function tear_down() {98 unregister_post_type( 'wpexport_excluded' );99 100 parent::tear_down();101 }102 103 97 /** 104 98 * @dataProvider data_should_include_attachments -
trunk/tests/phpunit/tests/admin/includesPost.php
r65270 r65286 25 25 26 26 self::$post_id = $factory->post->create(); 27 }28 29 public function tear_down() {30 unregister_post_type( 'yes_title' );31 unregister_post_type( 'no_title' );32 33 parent::tear_down();34 27 } 35 28 -
trunk/tests/phpunit/tests/admin/includesScreen.php
r64848 r65286 158 158 public function tear_down() { 159 159 unset( $GLOBALS['wp_taxonomies']['old-or-new'] ); 160 unregister_post_type( 'value-add' );161 unregister_post_type( 'edit-some-thing' );162 unregister_post_type( 'comments' );163 unregister_post_type( 'tags' );164 unregister_post_type( 'type_shows_in_rest' );165 166 160 parent::tear_down(); 167 161 } -
trunk/tests/phpunit/tests/admin/includesTemplate.php
r64852 r65286 13 13 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 14 14 self::$editor_id = $factory->user->create( array( 'role' => 'editor' ) ); 15 }16 17 public function tear_down() {18 unregister_taxonomy( 'wptests_tax_1' );19 20 parent::tear_down();21 15 } 22 16 -
trunk/tests/phpunit/tests/ajax/wpAjaxInlineSave.php
r64853 r65286 14 14 */ 15 15 class Tests_Ajax_wpAjaxInlineSave extends WP_Ajax_UnitTestCase { 16 17 public function tear_down() {18 unregister_taxonomy( 'wptests_tax_1' );19 unregister_taxonomy( 'wptests_tax_2' );20 21 parent::tear_down();22 }23 24 16 25 17 /** -
trunk/tests/phpunit/tests/ajax/wpCustomizeNavMenus.php
r64855 r65286 85 85 $this->wp_customize = new WP_Customize_Manager(); 86 86 $wp_customize = $this->wp_customize; 87 }88 89 public function tear_down() {90 unregister_post_type( 'privilege' );91 92 parent::tear_down();93 87 } 94 88 -
trunk/tests/phpunit/tests/entity-actions/registerCoreEntityActions.php
r64894 r65286 106 106 */ 107 107 public function tear_down() { 108 unregister_post_type( 'test_book' );109 unregister_post_type( 'test_note' );110 unregister_post_type( 'test_hidden' );111 112 108 self::reset_registry(); 113 109 -
trunk/tests/phpunit/tests/entity-fields/wpRegisterCoreFieldCollections.php
r65007 r65286 64 64 */ 65 65 public function tear_down() { 66 unregister_post_type( 'test_book' );67 unregister_post_type( 'test_note' );68 69 66 global $_wp_theme_features; 70 67 -
trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php
r65024 r65286 103 103 ) 104 104 ); 105 }106 107 public function tear_down() {108 unregister_taxonomy( 'batman' );109 unregister_taxonomy( 'robin' );110 111 parent::tear_down();112 105 } 113 106 -
trunk/tests/phpunit/tests/rest-api/rest-post-types-controller.php
r65192 r65286 9 9 */ 10 10 class WP_Test_REST_Post_Types_Controller extends WP_Test_REST_Controller_Testcase { 11 12 public function tear_down() {13 unregister_post_type( 'cpt' );14 unregister_post_type( 'cpt_template' );15 16 parent::tear_down();17 }18 11 19 12 public function test_register_routes() { -
trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php
r65024 r65286 71 71 wp_delete_term( $tag_id, 'post_tag' ); 72 72 } 73 }74 75 public function tear_down() {76 unregister_taxonomy( 'batman' );77 unregister_taxonomy( 'robin' );78 79 parent::tear_down();80 73 } 81 74 -
trunk/tests/phpunit/tests/rest-api/rest-taxonomies-controller.php
r65020 r65286 22 22 public static function wpTearDownAfterClass() { 23 23 self::delete_user( self::$contributor_id ); 24 }25 26 public function tear_down() {27 unregister_taxonomy( 'api-private' );28 unregister_taxonomy( 'test' );29 unregister_taxonomy_for_object_type( 'category', 'attachment' );30 31 parent::tear_down();32 24 } 33 25 -
trunk/tests/phpunit/tests/xmlrpc/wp/editTerm.php
r65024 r65286 25 25 ) 26 26 ); 27 }28 29 public function tear_down() {30 unregister_taxonomy( 'wptests_tax' );31 parent::tear_down();32 27 } 33 28 -
trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
r65024 r65286 22 22 ); 23 23 register_post_type( $this->cpt_name, $this->cpt_args ); 24 }25 26 public function tear_down() {27 unregister_post_type( $this->cpt_name );28 parent::tear_down();29 24 } 30 25 -
trunk/tests/phpunit/tests/xmlrpc/wp/getTerms.php
r65019 r65286 5 5 */ 6 6 class Tests_XMLRPC_wp_getTerms extends WP_XMLRPC_UnitTestCase { 7 8 public function tear_down() {9 unregister_taxonomy( 'wp_getTerms_custom_taxonomy' );10 parent::tear_down();11 }12 7 13 8 public function test_invalid_username_password() {
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)