Changeset 48926 for branches/5.5/tests/phpunit/tests/date/getTheDate.php
- Timestamp:
- 08/31/2020 10:49:18 PM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/tests/phpunit/tests/date/getTheDate.php
r48921 r48926 11 11 * @ticket 13771 12 12 */ 13 function test_get_the_date_returns_correct_time_with_post_id() {13 public function test_get_the_date_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 … … 20 20 * @ticket 28310 21 21 */ 22 function test_get_the_date_returns_false_with_null_or_non_existing_post() {22 public function test_get_the_date_returns_false_with_null_or_non_existing_post() { 23 23 $this->assertFalse( get_the_date() ); 24 24 $this->assertFalse( get_the_date( 'F j, Y h:i:s' ) ); … … 30 30 * @ticket 51184 31 31 */ 32 function test_get_the_date_returns_correct_time_with_empty_format() {32 public function test_get_the_date_returns_correct_time_with_empty_format() { 33 33 $post_id = self::factory()->post->create( array( 'post_date' => '2020-08-29 01:51:00' ) ); 34 34 … … 40 40 * @ticket 28310 41 41 */ 42 function test_get_the_time_returns_correct_time_with_post_id() {42 public function test_get_the_time_returns_correct_time_with_post_id() { 43 43 $post_id = self::factory()->post->create( array( 'post_date' => '2014-03-01 16:35:00' ) ); 44 44 … … 49 49 * @ticket 28310 50 50 */ 51 function test_get_the_time_returns_false_with_null_or_non_existing_post() {51 public function test_get_the_time_returns_false_with_null_or_non_existing_post() { 52 52 $this->assertFalse( get_the_time() ); 53 53 $this->assertFalse( get_the_time( 'h:i:s' ) ); … … 59 59 * @ticket 51184 60 60 */ 61 function test_get_the_time_returns_correct_time_with_empty_format() {61 public function test_get_the_time_returns_correct_time_with_empty_format() { 62 62 $post_id = self::factory()->post->create( array( 'post_date' => '2020-08-29 01:51:00' ) ); 63 63
Note: See TracChangeset
for help on using the changeset viewer.