Changeset 51331 for trunk/tests/phpunit/tests/term/termExists.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/termExists.php
r49108 r51331 117 117 _unregister_taxonomy( 'foo' ); 118 118 119 $this->assertI nternalType( 'array',$found );119 $this->assertIsArray( $found ); 120 120 $this->assertEquals( $t, $found['term_id'] ); 121 121 } … … 181 181 _unregister_taxonomy( 'foo' ); 182 182 183 $this->assertI nternalType( 'array',$found );183 $this->assertIsArray( $found ); 184 184 $this->assertEquals( $t, $found['term_id'] ); 185 185 } … … 199 199 _unregister_taxonomy( 'foo' ); 200 200 201 $this->assertI nternalType( 'array',$found );201 $this->assertIsArray( $found ); 202 202 $this->assertEquals( $t, $found['term_id'] ); 203 203 } … … 217 217 _unregister_taxonomy( 'foo' ); 218 218 219 $this->assertI nternalType( 'array',$found );219 $this->assertIsArray( $found ); 220 220 $this->assertEquals( $t, $found['term_id'] ); 221 221 } … … 235 235 _unregister_taxonomy( 'foo' ); 236 236 237 $this->assertI nternalType( 'string',$found );237 $this->assertIsString( $found ); 238 238 $this->assertEquals( $t, $found ); 239 239 } … … 253 253 _unregister_taxonomy( 'foo' ); 254 254 255 $this->assertI nternalType( 'string',$found );255 $this->assertIsString( $found ); 256 256 $this->assertEquals( $t, $found ); 257 257 } … … 263 263 $term = rand_str(); 264 264 $t = wp_insert_term( $term, 'wptests_tax' ); 265 $this->assertI nternalType( 'array',$t );265 $this->assertIsArray( $t ); 266 266 $this->assertEquals( $t['term_id'], term_exists( $t['term_id'] ) ); 267 267 $this->assertEquals( $t['term_id'], term_exists( $term ) );
Note: See TracChangeset
for help on using the changeset viewer.