Changeset 34720
- Timestamp:
- 09/30/2015 01:27:09 PM (9 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r34719 r34720 14 14 protected static $hooks_saved = array(); 15 15 protected static $ignore_files; 16 17 protected $db_version; 16 18 17 19 /** … … 65 67 * See #31130. 66 68 */ 69 $this->db_version = get_option( 'db_version' ); 67 70 if ( is_multisite() ) { 68 $this->db_version = get_option( 'db_version' );69 71 add_filter( 'pre_option_db_version', array( $this, 'db_version' ) ); 70 72 } -
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r34719 r34720 470 470 public function test_wp_insert_term_duplicate_slug_different_taxonomy_before_410_schema_change() { 471 471 472 $_db_version = $this->db_version; 473 $this->db_version = 30055; 472 // See #31130. 473 $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 } 474 480 475 481 register_taxonomy( 'wptests_tax', 'post' ); … … 498 504 $this->assertNotEquals( $new_term->term_id, $term->term_id ); 499 505 500 $this->db_version = $_db_version; 506 if ( is_multisite() ) { 507 $this->db_version = $_db_version; 508 } 509 501 510 _unregister_taxonomy( 'wptests_tax', 'post' ); 502 511 }
Note: See TracChangeset
for help on using the changeset viewer.