Changeset 48937 for trunk/tests/phpunit/tests/link/wpGetCanonicalURL.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link/wpGetCanonicalURL.php
r47727 r48937 42 42 */ 43 43 public function test_non_current_page() { 44 $this->assert Equals( get_permalink( self::$post_id ), wp_get_canonical_url( self::$post_id ) );44 $this->assertSame( get_permalink( self::$post_id ), wp_get_canonical_url( self::$post_id ) ); 45 45 } 46 46 … … 66 66 ); 67 67 68 $this->assert Equals( $expected, wp_get_canonical_url( self::$post_id ) );68 $this->assertSame( $expected, wp_get_canonical_url( self::$post_id ) ); 69 69 } 70 70 … … 88 88 $expected = trailingslashit( get_permalink( self::$post_id ) ) . user_trailingslashit( $page, 'single_paged' ); 89 89 90 $this->assert Equals( $expected, wp_get_canonical_url( self::$post_id ) );90 $this->assertSame( $expected, wp_get_canonical_url( self::$post_id ) ); 91 91 } 92 92 … … 114 114 ); 115 115 116 $this->assert Equals( $expected, wp_get_canonical_url( self::$post_id ) );116 $this->assertSame( $expected, wp_get_canonical_url( self::$post_id ) ); 117 117 } 118 118 … … 138 138 $expected = user_trailingslashit( trailingslashit( get_permalink( self::$post_id ) ) . $wp_rewrite->comments_pagination_base . '-' . $cpage, 'commentpaged' ) . '#comments'; 139 139 140 $this->assert Equals( $expected, wp_get_canonical_url( self::$post_id ) );140 $this->assertSame( $expected, wp_get_canonical_url( self::$post_id ) ); 141 141 } 142 142 … … 149 149 remove_filter( 'get_canonical_url', array( $this, 'canonical_url_filter' ) ); 150 150 151 $this->assert Equals( $this->canonical_url_filter(), $canonical_url );151 $this->assertSame( $this->canonical_url_filter(), $canonical_url ); 152 152 } 153 153
Note: See TracChangeset
for help on using the changeset viewer.