Changeset 51331 for trunk/tests/phpunit/tests/term/wpInsertTerm.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpInsertTerm.php
r49947 r51331 28 28 29 29 $t = wp_insert_term( $term, $taxonomy ); 30 $this->assertI nternalType( 'array',$t );30 $this->assertIsArray( $t ); 31 31 $this->assertNotWPError( $t ); 32 32 $this->assertTrue( $t['term_id'] > 0 ); … … 777 777 _unregister_taxonomy( 'wptests_tax' ); 778 778 779 $this->assertI nternalType( 'array',$found );779 $this->assertIsArray( $found ); 780 780 $this->assertNotEmpty( $found['term_id'] ); 781 781 $this->assertNotEmpty( $found['term_taxonomy_id'] ); … … 845 845 ); 846 846 847 $this->assertI nternalType( 'int',$t1 );848 $this->assertI nternalType( 'int',$t2 );847 $this->assertIsInt( $t1 ); 848 $this->assertIsInt( $t2 ); 849 849 $this->assertNotEquals( $t1, $t2 ); 850 850 … … 901 901 902 902 public function deleted_term_cb( $term, $tt_id, $taxonomy, $deleted_term, $object_ids ) { 903 $this->assertI nternalType( 'object',$deleted_term );904 $this->assertI nternalType( 'int',$term );905 $this->assertI nternalType( 'array',$object_ids );906 // Pesky string $this->assertI nternalType( 'int',$tt_id );903 $this->assertIsObject( $deleted_term ); 904 $this->assertIsInt( $term ); 905 $this->assertIsArray( $object_ids ); 906 // Pesky string $this->assertIsInt( $tt_id ); 907 907 $this->assertSame( $term, $deleted_term->term_id ); 908 908 $this->assertSame( $taxonomy, $deleted_term->taxonomy );
Note: See TracChangeset
for help on using the changeset viewer.