- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php
r38398 r42343 10 10 unset( $GLOBALS['comment'] ); 11 11 12 $comment_ids = $factory->comment->create_post_comments( 0, 1 );12 $comment_ids = $factory->comment->create_post_comments( 0, 1 ); 13 13 self::$comments = array_map( 'get_comment', $comment_ids ); 14 14 } … … 35 35 36 36 $url_link = get_comment_author_url_link(); 37 $link = $this->parseCommentAuthorUrl( $comment );37 $link = $this->parseCommentAuthorUrl( $comment ); 38 38 $this->assertEquals( $link, $url_link ); 39 39 } … … 43 43 44 44 $url_link = get_comment_author_url_link( '', '', '', $comment ); 45 $link = $this->parseCommentAuthorUrl( $comment );45 $link = $this->parseCommentAuthorUrl( $comment ); 46 46 $this->assertEquals( $link, $url_link ); 47 47 } … … 51 51 52 52 $url_link = get_comment_author_url_link( 'Burrito', '', '', $comment ); 53 $link = $this->parseCommentAuthorUrl( $comment, 'Burrito' );53 $link = $this->parseCommentAuthorUrl( $comment, 'Burrito' ); 54 54 $this->assertEquals( $link, $url_link ); 55 55 } … … 59 59 60 60 $url_link = get_comment_author_url_link( 'Burrito', 'I would love a ', '', $comment ); 61 $link = 'I would love a ' . $this->parseCommentAuthorUrl( $comment, 'Burrito' );61 $link = 'I would love a ' . $this->parseCommentAuthorUrl( $comment, 'Burrito' ); 62 62 $this->assertEquals( $link, $url_link ); 63 63 } … … 67 67 68 68 $url_link = get_comment_author_url_link( 'Burrito', '', ' is my favorite word.', $comment ); 69 $link = $this->parseCommentAuthorUrl( $comment, 'Burrito' ) . ' is my favorite word.';69 $link = $this->parseCommentAuthorUrl( $comment, 'Burrito' ) . ' is my favorite word.'; 70 70 $this->assertEquals( $link, $url_link ); 71 71 } … … 75 75 76 76 $url_link = get_comment_author_url_link( 'Burrito', 'I would love a ', ' right now.', $comment ); 77 $link = 'I would love a ' . $this->parseCommentAuthorUrl( $comment, 'Burrito' ) . ' right now.';77 $link = 'I would love a ' . $this->parseCommentAuthorUrl( $comment, 'Burrito' ) . ' right now.'; 78 78 $this->assertEquals( $link, $url_link ); 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.