Changeset 48921 for branches/5.5/tests/phpunit/tests/date/getPostTime.php
- Timestamp:
- 08/31/2020 06:56:22 PM (5 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/tests/phpunit/tests/date/getPostTime.php
r48920 r48921 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.