Changeset 50396 for trunk/tests/phpunit/tests/post/template.php
- Timestamp:
- 02/20/2021 05:43:55 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/template.php
r50127 r50396 468 468 469 469 // Test if child get_parent_post() post returns Null by default. 470 $parent = get_p arent_post( $child_id );470 $parent = get_post_parent( $child_id ); 471 471 $this->assertNull( $parent ); 472 472 … … 480 480 481 481 // Test if child get_parent_post() post returns the parent object. 482 $parent = get_p arent_post( $child_id );482 $parent = get_post_parent( $child_id ); 483 483 $this->assertNotNull( $parent ); 484 484 $this->assertSame( $parent_id, $parent->ID ); … … 499 499 500 500 // Test if child has_parent_post() post returns False by default. 501 $parent = has_p arent_post( $child_id );501 $parent = has_post_parent( $child_id ); 502 502 $this->assertFalse( $parent ); 503 503 … … 511 511 512 512 // Test if child has_parent_post() returns True. 513 $parent = has_p arent_post( $child_id );513 $parent = has_post_parent( $child_id ); 514 514 $this->assertTrue( $parent ); 515 515 }
Note: See TracChangeset
for help on using the changeset viewer.