Add @ticket references.

see , .

git-svn-id: https://develop.svn.wordpress.org/trunk@28800 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-06-22 01:40:38 +00:00
parent 562d64a4a3
commit f393fecbc5

@ -414,7 +414,10 @@ class Tests_Query_Results extends WP_UnitTestCase {
$this->assertNotEmpty( $posts3 ); $this->assertNotEmpty( $posts3 );
} }
function test_exlude_from_search_empty() { /**
* @ticket 19198
*/
function test_exclude_from_search_empty() {
global $wp_post_types; global $wp_post_types;
foreach ( array_keys( $wp_post_types ) as $slug ) foreach ( array_keys( $wp_post_types ) as $slug )
$wp_post_types[$slug]->exclude_from_search = true; $wp_post_types[$slug]->exclude_from_search = true;
@ -433,6 +436,9 @@ class Tests_Query_Results extends WP_UnitTestCase {
$this->assertNotRegExp( '#AND 1=0#', $this->q->request ); $this->assertNotRegExp( '#AND 1=0#', $this->q->request );
} }
/**
* @ticket 16854
*/
function test_query_author_vars() { function test_query_author_vars() {
$author_1 = $this->factory->user->create( array( 'user_login' => 'admin1', 'user_pass' => rand_str(), 'role' => 'author' ) ); $author_1 = $this->factory->user->create( array( 'user_login' => 'admin1', 'user_pass' => rand_str(), 'role' => 'author' ) );
$post_1 = $this->factory->post->create( array( 'post_title' => rand_str(), 'post_author' => $author_1, 'post_date' => '2007-01-01 00:00:00' ) ); $post_1 = $this->factory->post->create( array( 'post_title' => rand_str(), 'post_author' => $author_1, 'post_date' => '2007-01-01 00:00:00' ) );