mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Date/Time: Add a unit test for the return type of current_datetime().
Follow-up to [45883]. Props pbearne. Fixes #53484. git-svn-id: https://develop.svn.wordpress.org/trunk@52611 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8db1549c0f
commit
f09c56bfd3
16
tests/phpunit/tests/date/currentDatetime.php
Normal file
16
tests/phpunit/tests/date/currentDatetime.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @group date
|
||||
* @group datetime
|
||||
* @covers ::current_datetime
|
||||
*/
|
||||
class Tests_Date_CurrentDatetime extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 53484
|
||||
*/
|
||||
public function test_current_datetime_return_type() {
|
||||
$this->assertInstanceOf( 'DateTimeImmutable', current_datetime() );
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user