Changeset 48912 for trunk/tests/phpunit/tests/date/getPostTime.php
- Timestamp:
- 08/31/2020 03:56:41 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/date/getPostTime.php
r48911 r48912 11 11 * @ticket 28310 12 12 */ 13 public function test_get_post_time_ with_id_returns_correct_time() {13 public function test_get_post_time_returns_correct_time_with_post_id() { 14 14 $post_id = self::factory()->post->create( array( 'post_date' => '2014-03-01 16:35:00' ) ); 15 15 16 $this->assertEquals( '16:35:00', get_post_time( 'H:i:s', false, $post_id ) ); 16 17 } … … 29 30 * @ticket 28310 30 31 */ 31 public function test_get_post_modified_time_ with_id_returns_correct_time() {32 public function test_get_post_modified_time_returns_correct_time_with_post_id() { 32 33 $post_id = self::factory()->post->create( array( 'post_date' => '2014-03-01 16:35:00' ) ); 34 33 35 $this->assertEquals( '16:35:00', get_post_modified_time( 'H:i:s', false, $post_id ) ); 34 36 }
Note: See TracChangeset
for help on using the changeset viewer.