Changeset 51331 for trunk/tests/phpunit/tests/term.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term.php
r49603 r51331 54 54 $term = rand_str(); 55 55 $t = wp_insert_term( $term, $this->taxonomy ); 56 $this->assertI nternalType( 'array',$t );56 $this->assertIsArray( $t ); 57 57 $term_obj = get_term_by( 'name', $term, $this->taxonomy ); 58 58 $this->assertEquals( $t['term_id'], term_exists( $term_obj->slug ) ); … … 133 133 134 134 $t = wp_insert_term( $term, 'category' ); 135 $this->assertI nternalType( 'array',$t );135 $this->assertIsArray( $t ); 136 136 $t2 = wp_insert_term( $term, 'category', array( 'parent' => $t['term_id'] ) ); 137 $this->assertI nternalType( 'array',$t2 );137 $this->assertIsArray( $t2 ); 138 138 if ( function_exists( 'term_is_ancestor_of' ) ) { 139 139 $this->assertTrue( term_is_ancestor_of( $t['term_id'], $t2['term_id'], 'category' ) ); … … 177 177 $post = get_post( $post_id ); 178 178 179 $this->assertI nternalType( 'array',$post->post_category );179 $this->assertIsArray( $post->post_category ); 180 180 $this->assertSame( 1, count( $post->post_category ) ); 181 181 $this->assertEquals( get_option( 'default_category' ), $post->post_category[0] );
Note: See TracChangeset
for help on using the changeset viewer.