Changeset 48937 for trunk/tests/phpunit/tests/post/getPageChildren.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPageChildren.php
r46586 r48937 75 75 $expected = array( 100, 101, 103, 102, 106, 107, 108, 105 ); 76 76 $actual = get_page_children( 0, $this->pages ); 77 $this->assert Equals( $expected, wp_list_pluck( $actual, 'ID' ) );77 $this->assertSame( $expected, wp_list_pluck( $actual, 'ID' ) ); 78 78 } 79 79 … … 81 81 $expected = array( 106, 107, 108 ); 82 82 $actual = get_page_children( 102, $this->pages ); 83 $this->assert Equals( $expected, wp_list_pluck( $actual, 'ID' ) );83 $this->assertSame( $expected, wp_list_pluck( $actual, 'ID' ) ); 84 84 } 85 85 86 86 public function test_page_id_that_is_a_leaf_should_return_empty_array() { 87 87 $actual = get_page_children( 103, $this->pages ); 88 $this->assert Equals( array(), $actual );88 $this->assertSame( array(), $actual ); 89 89 } 90 90 91 91 public function test_nonzero_page_id_not_matching_any_actual_post_id_should_return_empty_array() { 92 92 $actual = get_page_children( 200, $this->pages ); 93 $this->assert Equals( array(), $actual );93 $this->assertSame( array(), $actual ); 94 94 } 95 95 }
Note: See TracChangeset
for help on using the changeset viewer.