diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index d3c7abbef0b6e..60f43b5f9c595 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -1794,6 +1794,18 @@ public function test_wp_is_stream( $path, $expected ) { $this->assertSame( $expected, wp_is_stream( $path ) ); } + /** + * Test current_datetime. + * + * @ticket 53484 + * + * @covers ::current_datetime + */ + public function test_current_datetime() { + + $this->assertInstanceOf( 'DateTimeImmutable', current_datetime() ); + } + /** * Data provider for stream URL validation. *