- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php
r46586 r48937 34 34 $expected = '<a href="mailto:foo@example.org">foo@example.org</a>'; 35 35 36 $this->assert Equals( $expected, get_comment_author_email_link() );36 $this->assertSame( $expected, get_comment_author_email_link() ); 37 37 } 38 38 … … 54 54 $expected = sprintf( '%1$s<a href="mailto:%2$s">%3$s</a>%4$s', $before, $email, $linktext, $after ); 55 55 56 $this->assert Equals( $expected, get_comment_author_email_link( $linktext, $before, $after, $comment ) );56 $this->assertSame( $expected, get_comment_author_email_link( $linktext, $before, $after, $comment ) ); 57 57 } 58 58 … … 64 64 $expected = sprintf( '%1$s<a href="mailto:foo@example.org">%2$s</a>%3$s', $before, $linktext, $after ); 65 65 66 $this->assert Equals( $expected, get_comment_author_email_link( $linktext, $before, $after ) );66 $this->assertSame( $expected, get_comment_author_email_link( $linktext, $before, $after ) ); 67 67 } 68 68 … … 70 70 $expected = sprintf( '<a href="mailto:foo@example.org">%1$s</a>', $linktext = 'linktext' ); 71 71 72 $this->assert Equals( $expected, get_comment_author_email_link( $linktext ) );72 $this->assertSame( $expected, get_comment_author_email_link( $linktext ) ); 73 73 } 74 74 … … 76 76 $expected = sprintf( '%1$s<a href="mailto:foo@example.org">foo@example.org</a>', $before = 'before' ); 77 77 78 $this->assert Equals( $expected, get_comment_author_email_link( '', $before ) );78 $this->assertSame( $expected, get_comment_author_email_link( '', $before ) ); 79 79 } 80 80 … … 82 82 $expected = sprintf( '<a href="mailto:foo@example.org">foo@example.org</a>%1$s', $after = 'after' ); 83 83 84 $this->assert Equals( $expected, get_comment_author_email_link( '', '', $after ) );84 $this->assertSame( $expected, get_comment_author_email_link( '', '', $after ) ); 85 85 } 86 86 … … 97 97 $expected = sprintf( '<a href="mailto:%1$s">%2$s</a>', $email, $email ); 98 98 99 $this->assert Equals( $expected, get_comment_author_email_link( '', '', '', $comment ) );99 $this->assertSame( $expected, get_comment_author_email_link( '', '', '', $comment ) ); 100 100 } 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.