wordpress-develop/tests/phpunit/tests/functions/wp.php
Sergey Biryukov 835e9c48a4 Tests: Add missing @covers tags for files in phpunit/tests/functions/.
Props pbearne, jrf.
See #39265.

git-svn-id: https://develop.svn.wordpress.org/trunk@49006 602fd350-edb4-49c9-b593-d223f7449a82
2020-09-19 15:52:03 +00:00

21 lines
373 B
PHP

<?php
/**
* @group functions.php
* @group query
* @covers ::wp
*/
class Tests_Functions_WP extends WP_UnitTestCase {
public function test_wp_sets_global_vars() {
global $wp, $wp_query, $wp_the_query;
wp();
$this->assertInstanceOf( 'WP', $wp );
$this->assertInstanceOf( 'WP_Query', $wp_query );
$this->assertInstanceOf( 'WP_Query', $wp_the_query );
}
}