Changeset 51331 for trunk/tests/phpunit/tests/post/getPageByPath.php
- Timestamp:
- 07/05/2021 05:21:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPageByPath.php
r48937 r51331 307 307 308 308 $object = get_page_by_path( 'foo', OBJECT ); 309 $this->assertI nternalType( 'object',$object );309 $this->assertIsObject( $object ); 310 310 $this->assertSame( $page, $object->ID ); 311 311 312 312 $array_n = get_page_by_path( 'foo', ARRAY_N ); 313 $this->assertI nternalType( 'array',$array_n );313 $this->assertIsArray( $array_n ); 314 314 $this->assertSame( $page, $array_n[0] ); 315 315 316 316 $array_a = get_page_by_path( 'foo', ARRAY_A ); 317 $this->assertI nternalType( 'array',$array_a );317 $this->assertIsArray( $array_a ); 318 318 $this->assertSame( $page, $array_a['ID'] ); 319 319 }
Note: See TracChangeset
for help on using the changeset viewer.