Changeset 48937 for trunk/tests/phpunit/tests/term/wpInsertTerm.php
- Timestamp:
- 09/02/2020 12:35:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r48840 r48937 212 212 $this->assertWPError( $term7 ); 213 213 $this->assertNotEmpty( $term7->errors ); 214 $this->assert Equals( $term6, $term7->error_data['term_exists'] );214 $this->assertSame( $term6, $term7->error_data['term_exists'] ); 215 215 216 216 $terms = array_map( 'get_tag', array( $term3, $term4, $term5, $term6 ) ); … … 225 225 $this->assertWPError( $term12 ); 226 226 $this->assertNotEmpty( $term12->errors ); 227 $this->assert Equals( $term11, $term12->error_data['term_exists'] );227 $this->assertSame( $term11, $term12->error_data['term_exists'] ); 228 228 229 229 $terms = array_map( 'get_tag', array( $term8, $term9, $term10, $term11 ) ); … … 818 818 _unregister_taxonomy( 'wptests_tax' ); 819 819 820 $this->assert Same( false,wp_cache_get( 'all_ids', 'wptests_tax' ) );821 $this->assert Same( false,wp_cache_get( 'get', 'wptests_tax' ) );820 $this->assertFalse( wp_cache_get( 'all_ids', 'wptests_tax' ) ); 821 $this->assertFalse( wp_cache_get( 'get', 'wptests_tax' ) ); 822 822 823 823 $cached_children = get_option( 'wptests_tax_children' ); … … 905 905 $this->assertInternalType( 'array', $object_ids ); 906 906 // Pesky string $this->assertInternalType( 'int', $tt_id ); 907 $this->assert Equals( $term, $deleted_term->term_id );908 $this->assert Equals( $taxonomy, $deleted_term->taxonomy );907 $this->assertSame( $term, $deleted_term->term_id ); 908 $this->assertSame( $taxonomy, $deleted_term->taxonomy ); 909 909 $this->assertEquals( $tt_id, $deleted_term->term_taxonomy_id ); 910 910 $this->assertEmpty( $object_ids );
Note: See TracChangeset
for help on using the changeset viewer.