mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Props pbearne, donmhico. Fixes #48844. git-svn-id: https://develop.svn.wordpress.org/trunk@47212 602fd350-edb4-49c9-b593-d223f7449a82
20 lines
357 B
PHP
20 lines
357 B
PHP
<?php
|
|
|
|
/**
|
|
* @group functions.php
|
|
* @group query
|
|
*/
|
|
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 );
|
|
}
|
|
|
|
}
|