Changeset 34828 for trunk/tests/phpunit/tests/term/wpInsertTerm.php
- Timestamp:
- 10/05/2015 03:05:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r34809 r34828 469 469 */ 470 470 public function test_wp_insert_term_duplicate_slug_different_taxonomy_before_410_schema_change() { 471 472 // See #31130.473 471 $old_db_version = 30055; 474 if ( is_multisite() ) { 475 $_db_version = $this->db_version; 476 $this->db_version = $old_db_version; 477 } else { 478 update_option( 'db_version', $old_db_version ); 479 } 472 update_option( 'db_version', $old_db_version ); 480 473 481 474 register_taxonomy( 'wptests_tax', 'post' ); … … 503 496 $this->assertSame( 'foo-2', $new_term->slug ); 504 497 $this->assertNotEquals( $new_term->term_id, $term->term_id ); 505 506 if ( is_multisite() ) {507 $this->db_version = $_db_version;508 }509 498 510 499 _unregister_taxonomy( 'wptests_tax', 'post' );
Note: See TracChangeset
for help on using the changeset viewer.