Changeset 48937 for trunk/tests/phpunit/tests/date/getTheDate.php
- Timestamp:
- 09/02/2020 12:35:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/getTheDate.php
r48924 r48937 14 14 $post_id = self::factory()->post->create( array( 'post_date' => '2014-03-01 16:35:00' ) ); 15 15 16 $this->assert Equals( 'March 1, 2014', get_the_date( 'F j, Y', $post_id ) );16 $this->assertSame( 'March 1, 2014', get_the_date( 'F j, Y', $post_id ) ); 17 17 } 18 18 … … 33 33 $post_id = self::factory()->post->create( array( 'post_date' => '2020-08-29 01:51:00' ) ); 34 34 35 $this->assert Equals( 'August 29, 2020', get_the_date( '', $post_id ) );36 $this->assert Equals( 'August 29, 2020', get_the_date( false, $post_id ) );35 $this->assertSame( 'August 29, 2020', get_the_date( '', $post_id ) ); 36 $this->assertSame( 'August 29, 2020', get_the_date( false, $post_id ) ); 37 37 } 38 38 … … 43 43 $post_id = self::factory()->post->create( array( 'post_date' => '2014-03-01 16:35:00' ) ); 44 44 45 $this->assert Equals( '16:35:00', get_the_time( 'H:i:s', $post_id ) );45 $this->assertSame( '16:35:00', get_the_time( 'H:i:s', $post_id ) ); 46 46 } 47 47 … … 62 62 $post_id = self::factory()->post->create( array( 'post_date' => '2020-08-29 01:51:00' ) ); 63 63 64 $this->assert Equals( '1:51 am', get_the_time( '', $post_id ) );65 $this->assert Equals( '1:51 am', get_the_time( false, $post_id ) );64 $this->assertSame( '1:51 am', get_the_time( '', $post_id ) ); 65 $this->assertSame( '1:51 am', get_the_time( false, $post_id ) ); 66 66 } 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.