Changeset 65285
- Timestamp:
- 11/05/2026 11:37:38 PM (33 hours ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 26 edited
-
category/catIsAncestorOf.php (modified) (1 diff)
-
category/categoryDescription.php (modified) (1 diff)
-
category/getCategoryLink.php (modified) (1 diff)
-
category/getTheCategoryById.php (modified) (1 diff)
-
category/wpListCategories.php (modified) (1 diff)
-
taxonomy/getObjectTaxonomies.php (modified) (1 diff)
-
taxonomy/isTaxonomyViewable.php (modified) (1 diff)
-
term/getTagLink.php (modified) (2 diffs)
-
term/getTermBy.php (modified) (1 diff)
-
term/getTermField.php (modified) (1 diff)
-
term/getTermLink.php (modified) (1 diff)
-
term/getTheTerms.php (modified) (1 diff)
-
term/isObjectInTerm.php (modified) (1 diff)
-
term/meta.php (modified) (1 diff)
-
term/splitSharedTerm.php (modified) (1 diff)
-
term/termCounts.php (modified) (1 diff)
-
term/termDescription.php (modified) (1 diff)
-
term/wpDeleteObjectTermRelationships.php (modified) (1 diff)
-
term/wpDeleteTerm.php (modified) (1 diff)
-
term/wpGenerateTagCloud.php (modified) (1 diff)
-
term/wpGetObjectTerms.php (modified) (1 diff)
-
term/wpInsertTerm.php (modified) (1 diff)
-
term/wpRemoveObjectTerms.php (modified) (1 diff)
-
term/wpTerm.php (modified) (1 diff)
-
term/wpUniqueTermSlug.php (modified) (1 diff)
-
term/wpUpdateTerm.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/category/catIsAncestorOf.php
r64985 r65285 11 11 class Tests_Category_CatIsAncestorOf extends WP_UnitTestCase { 12 12 13 14 public function tear_down() {15 16 unregister_taxonomy( 'wptests_tax' );17 18 parent::tear_down();19 }20 21 13 /** 22 14 * Grandparent category ID. -
trunk/tests/phpunit/tests/category/categoryDescription.php
r64846 r65285 8 8 */ 9 9 class Tests_Category_CategoryDescription extends WP_UnitTestCase { 10 11 public function tear_down() {12 unregister_taxonomy( 'wptests_tax' );13 14 parent::tear_down();15 }16 10 public function test_success_query_by_id() { 17 11 $description = 'Foo'; -
trunk/tests/phpunit/tests/category/getCategoryLink.php
r65270 r65285 12 12 13 13 $this->set_permalink_structure( '' ); 14 }15 16 public function tear_down() {17 unregister_taxonomy( 'wptests_tax' );18 19 parent::tear_down();20 14 } 21 15 public function test_success() { -
trunk/tests/phpunit/tests/category/getTheCategoryById.php
r64846 r65285 8 8 */ 9 9 class Tests_Category_GetTheCategoryById extends WP_UnitTestCase { 10 11 public function tear_down() {12 unregister_taxonomy( 'wptests_tax' );13 14 parent::tear_down();15 }16 10 public function test_success() { 17 11 $c = self::factory()->category->create( -
trunk/tests/phpunit/tests/category/wpListCategories.php
r64856 r65285 8 8 */ 9 9 class Tests_Category_WpListCategories extends WP_UnitTestCase { 10 11 public function tear_down() {12 unregister_post_type( 'wptests_pt' );13 unregister_post_type( 'wptests_pt2' );14 unregister_taxonomy( 'wptests_tax' );15 16 parent::tear_down();17 }18 19 10 public function test_class() { 20 11 $c = self::factory()->category->create(); -
trunk/tests/phpunit/tests/taxonomy/getObjectTaxonomies.php
r64844 r65285 9 9 register_post_type( 'wptests_pt' ); 10 10 register_taxonomy( 'wptests_tax', 'wptests_pt' ); 11 }12 13 public function tear_down() {14 unregister_taxonomy( 'wptests_tax' );15 unregister_taxonomy( 'wptests_tax2' );16 unregister_post_type( 'wptests_pt' );17 18 parent::tear_down();19 11 } 20 12 -
trunk/tests/phpunit/tests/taxonomy/isTaxonomyViewable.php
r64844 r65285 11 11 register_taxonomy( 'wptests_tax_viewable', 'wptests_pt', array( 'publicly_queryable' => true ) ); 12 12 register_taxonomy( 'wptests_tax_non_viewable', 'wptests_pt', array( 'publicly_queryable' => false ) ); 13 }14 15 public function tear_down() {16 unregister_taxonomy( 'wptests_tax_viewable' );17 unregister_taxonomy( 'wptests_tax_non_viewable' );18 unregister_post_type( 'wptests_pt' );19 20 parent::tear_down();21 13 } 22 14 -
trunk/tests/phpunit/tests/term/getTagLink.php
r65270 r65285 43 43 44 44 /** 45 * Tear down after the test class finishes.46 */47 public static function wpTearDownAfterClass() {48 unregister_taxonomy( 'wptests_tax' );49 }50 51 /**52 45 * Set up the test fixture. 53 46 */ … … 59 52 // Required as taxonomies are reset between tests. 60 53 register_taxonomy( 'wptests_tax', 'post' ); 61 }62 63 /**64 * Tear down after each test.65 */66 public function tear_down() {67 unregister_taxonomy( 'wptests_tax' );68 69 parent::tear_down();70 54 } 71 55 -
trunk/tests/phpunit/tests/term/getTermBy.php
r65015 r65285 7 7 8 8 protected $query = ''; 9 10 public function tear_down() {11 unregister_taxonomy( 'wptests_tax' );12 13 parent::tear_down();14 }15 9 16 10 public function test_get_term_by_slug() { -
trunk/tests/phpunit/tests/term/getTermField.php
r65014 r65285 33 33 } 34 34 35 public function tear_down() {36 unregister_taxonomy( self::$taxonomy );37 parent::tear_down();38 }39 40 35 /** 41 36 * @ticket 34245 -
trunk/tests/phpunit/tests/term/getTermLink.php
r65270 r65285 18 18 } 19 19 20 public static function wpTearDownAfterClass() {21 unregister_taxonomy( 'wptests_tax' );22 }23 24 20 public function set_up() { 25 21 parent::set_up(); 26 22 27 23 self::register_custom_taxonomy(); 28 }29 30 public function tear_down() {31 unregister_taxonomy( 'wptests_tax' );32 unregister_taxonomy( 'wptests_tax2' );33 34 parent::tear_down();35 24 } 36 25 -
trunk/tests/phpunit/tests/term/getTheTerms.php
r65122 r65285 10 10 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 11 11 self::$post_ids = $factory->post->create_many( 5 ); 12 }13 14 public function tear_down() {15 unregister_taxonomy( 'wptests_tax' );16 parent::tear_down();17 12 } 18 13 -
trunk/tests/phpunit/tests/term/isObjectInTerm.php
r65026 r65285 5 5 */ 6 6 class Tests_IsObjectInTerm extends WP_UnitTestCase { 7 public function tear_down() {8 unregister_taxonomy( 'wptests_tax' );9 10 parent::tear_down();11 }12 7 public function test_terms_are_ints() { 13 8 register_taxonomy( 'wptests_tax', 'post' ); -
trunk/tests/phpunit/tests/term/meta.php
r65126 r65285 20 20 $this->unregister_all_meta_keys(); 21 21 register_taxonomy( 'wptests_tax', 'post' ); 22 }23 24 public function tear_down() {25 unregister_taxonomy( 'wptests_tax' );26 unregister_taxonomy( 'wptests_tax_2' );27 unregister_taxonomy( 'wptests_tax_3' );28 29 parent::tear_down();30 22 } 31 23 -
trunk/tests/phpunit/tests/term/splitSharedTerm.php
r65017 r65285 77 77 } 78 78 79 public function tear_down() {80 unregister_taxonomy( 'wptests_tax' );81 unregister_taxonomy( 'wptests_tax_2' );82 unregister_taxonomy( 'wptests_tax_3' );83 unregister_taxonomy( 'wptests_tax_4' );84 unregister_taxonomy( 'wptests_tax_5' );85 unregister_taxonomy( 'wptests_tax_6' );86 87 parent::tear_down();88 }89 90 79 /** 91 80 * @ticket 5809 -
trunk/tests/phpunit/tests/term/termCounts.php
r65015 r65285 66 66 parent::set_up(); 67 67 self::register_taxonomies(); 68 }69 70 public function tear_down() {71 unregister_taxonomy( 'wp_test_tax_counts' );72 unregister_taxonomy( 'wp_test_user_tax_counts' );73 parent::tear_down();74 68 } 75 69 -
trunk/tests/phpunit/tests/term/termDescription.php
r65270 r65285 51 51 52 52 $this->set_permalink_structure( '' ); 53 }54 55 public function tear_down() {56 unregister_taxonomy( 'wptests_tax' );57 58 parent::tear_down();59 53 } 60 54 -
trunk/tests/phpunit/tests/term/wpDeleteObjectTermRelationships.php
r65016 r65285 6 6 */ 7 7 class Tests_Term_WpDeleteObjectTermRelationships extends WP_UnitTestCase { 8 public function tear_down() {9 unregister_taxonomy( 'wptests_tax' );10 unregister_taxonomy( 'wptests_tax1' );11 unregister_taxonomy( 'wptests_tax2' );12 unregister_taxonomy( 'wptests_tax3' );13 14 parent::tear_down();15 }16 17 8 public function test_single_taxonomy() { 18 9 register_taxonomy( 'wptests_tax1', 'post' ); -
trunk/tests/phpunit/tests/term/wpDeleteTerm.php
r65016 r65285 7 7 protected $deleted_term; 8 8 protected $object_ids; 9 10 public function tear_down() {11 unregister_taxonomy( 'wptests_tax' );12 13 parent::tear_down();14 }15 9 16 10 /** -
trunk/tests/phpunit/tests/term/wpGenerateTagCloud.php
r65161 r65285 5 5 class Tests_WP_Generate_Tag_Cloud extends WP_UnitTestCase { 6 6 protected $terms = array(); 7 8 public function tear_down() {9 unregister_taxonomy( 'wptests_tax' );10 11 parent::tear_down();12 }13 7 14 8 /** -
trunk/tests/phpunit/tests/term/wpGetObjectTerms.php
r65020 r65285 29 29 public function tear_down() { 30 30 $this->taxonomies = null; 31 unregister_taxonomy( 'wptests_tax' );32 unregister_taxonomy( 'wptests_tax1' );33 unregister_taxonomy( 'wptests_tax2' );34 unregister_taxonomy( 'wptests_tax_2' );35 unregister_taxonomy( 'wptests_tax_3' );36 unregister_taxonomy( 'wptests_tax_4' );37 unregister_taxonomy( 'wptests_tax_hierarchical' );38 31 39 32 parent::tear_down(); -
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r65117 r65285 15 15 wp_insert_term( $term, $tax ); 16 16 } 17 }18 19 public function tear_down() {20 unregister_taxonomy( 'wptests_tax' );21 unregister_taxonomy( 'wptests_tax_2' );22 23 parent::tear_down();24 17 } 25 18 -
trunk/tests/phpunit/tests/term/wpRemoveObjectTerms.php
r65019 r65285 5 5 */ 6 6 class Tests_Term_WpRemoveObjectTerms extends WP_UnitTestCase { 7 public function tear_down() {8 unregister_taxonomy( 'wptests_tax' );9 parent::tear_down();10 }11 12 7 /** 13 8 * @ticket 34338 -
trunk/tests/phpunit/tests/term/wpTerm.php
r65020 r65285 10 10 parent::set_up(); 11 11 register_taxonomy( 'wptests_tax', 'post' ); 12 }13 14 public function tear_down() {15 unregister_taxonomy( 'wptests_tax' );16 unregister_taxonomy( 'wptests_tax2' );17 18 parent::tear_down();19 12 } 20 13 -
trunk/tests/phpunit/tests/term/wpUniqueTermSlug.php
r65019 r65285 9 9 register_taxonomy( 'wptests_tax1', 'post', array( 'hierarchical' => false ) ); 10 10 register_taxonomy( 'wptests_tax2', 'post', array( 'hierarchical' => true ) ); 11 }12 13 public function tear_down() {14 unregister_taxonomy( 'wptests_tax1' );15 unregister_taxonomy( 'wptests_tax2' );16 17 parent::tear_down();18 11 } 19 12 -
trunk/tests/phpunit/tests/term/wpUpdateTerm.php
r65020 r65285 5 5 */ 6 6 class Tests_Term_WpUpdateTerm extends WP_UnitTestCase { 7 8 public function tear_down() {9 unregister_taxonomy( 'wptests_tax' );10 unregister_taxonomy( 'wptests_tax_2' );11 12 parent::tear_down();13 }14 15 7 public function test_wp_update_term_taxonomy_does_not_exist() { 16 8 $found = wp_update_term( 1, 'bar' );
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)