Changeset 48665 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 07/28/2020 03:40:35 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r48480 r48665 1002 1002 // Test default category. 1003 1003 $term = wp_get_post_terms( $post_id, $tax ); 1004 $this->assertSame( get_option( 'default_t axonomy_' . $tax ), $term[0]->term_id );1004 $this->assertSame( get_option( 'default_term_' . $tax ), $term[0]->term_id ); 1005 1005 1006 1006 // Test default term deletion. … … 1021 1021 ); 1022 1022 $term = wp_get_post_terms( $post_id, $tax ); 1023 $this->assertSame( get_option( 'default_t axonomy_' . $tax ), $term[0]->term_id );1023 $this->assertSame( get_option( 'default_term_' . $tax ), $term[0]->term_id ); 1024 1024 1025 1025 // wp_set_object_terms shouldn't assign default category. … … 1029 1029 1030 1030 unregister_taxonomy( $tax ); 1031 $this->assertSame( get_option( 'default_t axonomy_' . $tax ), false );1031 $this->assertSame( get_option( 'default_term_' . $tax ), false ); 1032 1032 } 1033 1033 }
Note: See TracChangeset
for help on using the changeset viewer.