- Timestamp:
- 11/30/2017 11:09:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getCommentAuthorEmailLink.php
r38763 r42343 24 24 25 25 public static function wpSetUpBeforeClass( $factory ) { 26 self::$comment = $factory->comment->create_and_get( array( 27 'comment_author_email' => 'foo@example.org' 28 ) ); 26 self::$comment = $factory->comment->create_and_get( 27 array( 28 'comment_author_email' => 'foo@example.org', 29 ) 30 ); 29 31 } 30 32 … … 44 46 $before = 'before'; 45 47 $after = 'after'; 46 $comment = self::factory()->comment->create_and_get( array( 47 'comment_author_email' => $email = 'baz@example.org' 48 ) ); 48 $comment = self::factory()->comment->create_and_get( 49 array( 50 'comment_author_email' => $email = 'baz@example.org', 51 ) 52 ); 49 53 50 54 $expected = sprintf( '%1$s<a href="mailto:%2$s">%3$s</a>%4$s', $before, $email, $linktext, $after ); … … 85 89 */ 86 90 public function test_comment_param_should_override_global() { 87 $comment = self::factory()->comment->create_and_get( array( 88 'comment_author_email' => $email = 'bar@example.org' 89 ) ); 91 $comment = self::factory()->comment->create_and_get( 92 array( 93 'comment_author_email' => $email = 'bar@example.org', 94 ) 95 ); 90 96 91 97 $expected = sprintf( '<a href="mailto:%1$s">%2$s</a>', $email, $email );
Note: See TracChangeset
for help on using the changeset viewer.