Changeset 40979 for trunk/tests/phpunit/tests/term/wpTerm.php
- Timestamp:
- 07/01/2017 11:45:09 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/wpTerm.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpTerm.php
r39992 r40979 69 69 $this->assertSame( 1, $found->term_id ); 70 70 } 71 72 /** 73 * @ticket 40671 74 */ 75 public function test_get_instance_should_respect_taxonomy_when_term_id_is_found_in_cache() { 76 global $wpdb; 77 78 register_taxonomy( 'wptests_tax2', 'post' ); 79 80 // Ensure that cache is primed. 81 WP_Term::get_instance( self::$term_id, 'wptests_tax' ); 82 83 $found = WP_Term::get_instance( self::$term_id, 'wptests_tax2' ); 84 $this->assertFalse( $found ); 85 } 71 86 }
Note: See TracChangeset
for help on using the changeset viewer.