Changeset 48937 for trunk/tests/phpunit/tests/date/getCommentDate.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/getCommentDate.php
r48924 r48937 14 14 $c = self::factory()->comment->create( array( 'comment_date' => '2020-08-29 01:51:00' ) ); 15 15 16 $this->assert Equals( 'August 29, 2020', get_comment_date( 'F j, Y', $c ) );16 $this->assertSame( 'August 29, 2020', get_comment_date( 'F j, Y', $c ) ); 17 17 } 18 18 … … 23 23 $c = self::factory()->comment->create( array( 'comment_date' => '2020-08-29 01:51:00' ) ); 24 24 25 $this->assert Equals( 'August 29, 2020', get_comment_date( '', $c ) );26 $this->assert Equals( 'August 29, 2020', get_comment_date( false, $c ) );25 $this->assertSame( 'August 29, 2020', get_comment_date( '', $c ) ); 26 $this->assertSame( 'August 29, 2020', get_comment_date( false, $c ) ); 27 27 } 28 28 … … 34 34 35 35 $GLOBALS['comment'] = get_comment( $c ); 36 $this->assert Equals( '1:51 am', get_comment_time( 'g:i a' ) );36 $this->assertSame( '1:51 am', get_comment_time( 'g:i a' ) ); 37 37 } 38 38 … … 44 44 45 45 $GLOBALS['comment'] = get_comment( $c ); 46 $this->assert Equals( '1:51 am', get_comment_time( '' ) );47 $this->assert Equals( '1:51 am', get_comment_time( false ) );46 $this->assertSame( '1:51 am', get_comment_time( '' ) ); 47 $this->assertSame( '1:51 am', get_comment_time( false ) ); 48 48 } 49 49 }
Note: See TracChangeset
for help on using the changeset viewer.