Changeset 64071
- Timestamp:
- 10/02/2026 08:03:38 PM (2 days ago)
- Location:
- trunk/tests/phpunit/tests/post
- Files:
-
- 4 edited
-
getPageByPath.php (modified) (1 diff)
-
meta.php (modified) (2 diffs)
-
types.php (modified) (1 diff)
-
wpCountAttachments.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/getPageByPath.php
r63915 r64071 39 39 40 40 // get_page_by_path() should return a post of the requested type before returning an attachment. 41 // Keep assertEquals() because the objects are intentionally compared by value. 41 42 $this->assertEquals( $page, get_page_by_path( 'some-page' ) ); 42 43 43 44 // Make sure get_page_by_path() will still select an attachment when a post of the requested type doesn't exist. 45 // Keep assertEquals() because the objects are intentionally compared by value. 44 46 $this->assertEquals( $other_att, get_page_by_path( 'some-other-page' ) ); 45 47 } -
trunk/tests/phpunit/tests/post/meta.php
r56548 r64071 172 172 $mobj->meta_key = 'get_post_meta_by_key'; 173 173 $mobj->meta_value = 'get_post_meta_by_key_value'; 174 // Keep assertEquals() because the objects are intentionally compared by value. 174 175 $this->assertEquals( $mobj, get_post_meta_by_id( $mid ) ); 175 176 delete_metadata_by_mid( 'post', $mid ); … … 179 180 $mobj->meta_id = $mid; 180 181 $mobj->meta_value = array( 'foo', 'bar' ); 182 // Keep assertEquals() because the objects are intentionally compared by value. 181 183 $this->assertEquals( $mobj, get_post_meta_by_id( $mid ) ); 182 184 delete_metadata_by_mid( 'post', $mid ); -
trunk/tests/phpunit/tests/post/types.php
r64009 r64071 293 293 $after = get_post_type_object( 'foo' )->labels; 294 294 295 // Keep assertEquals() because the objects are intentionally compared by value. 295 296 $this->assertEquals( $before, $after ); 296 297 -
trunk/tests/phpunit/tests/post/wpCountAttachments.php
r54255 r64071 29 29 $actual = wp_cache_get( $cache_key, 'counts' ); 30 30 31 // Keep assertEquals() because the objects are intentionally compared by value. 31 32 $this->assertEquals( $expected, $actual ); 32 33 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)