Changeset 51367 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 07/07/2021 10:32:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r51331 r51367 99 99 $tcache = wp_cache_get( $id, 'post_tag_relationships' ); 100 100 $this->assertIsArray( $tcache ); 101 $this->assert Same( 2, count( $tcache ));101 $this->assertCount( 2, $tcache ); 102 102 103 103 $tcache = wp_cache_get( $id, 'ctax_relationships' ); 104 104 if ( 'cpt' === $post_type ) { 105 105 $this->assertIsArray( $tcache ); 106 $this->assert Same( 2, count( $tcache ));106 $this->assertCount( 2, $tcache ); 107 107 } else { 108 108 $this->assertFalse( $tcache ); … … 918 918 919 919 preg_match_all( '|href="([^"]+)"|', $wp_tag_cloud, $matches ); 920 $this->assert Same( 1, count( $matches[1] ));920 $this->assertCount( 1, $matches[1] ); 921 921 922 922 $terms = get_terms( $tax );
Note: See TracChangeset
for help on using the changeset viewer.