From 1cda3b44cfc54bbc483625c784db2cfe61d517e9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 20 Feb 2014 02:20:40 +0000 Subject: [PATCH] Add @ticket references. see #26903. git-svn-id: https://develop.svn.wordpress.org/trunk@27197 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/term/getTerms.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/phpunit/tests/term/getTerms.php b/tests/phpunit/tests/term/getTerms.php index 06e9aacb71..c0da2474bb 100644 --- a/tests/phpunit/tests/term/getTerms.php +++ b/tests/phpunit/tests/term/getTerms.php @@ -196,6 +196,9 @@ class Tests_Term_getTerms extends WP_UnitTestCase { $this->assertEqualSets( array( $term_id1, $term_id2 ), $terms ); } + /** + * @ticket 8214 + */ function test_get_terms_like() { $term_id1 = $this->factory->tag->create( array( 'name' => 'burrito', 'description' => 'This is a burrito.' ) ); $term_id2 = $this->factory->tag->create( array( 'name' => 'taco', 'description' => 'Burning man.' ) ); @@ -225,6 +228,9 @@ class Tests_Term_getTerms extends WP_UnitTestCase { $this->assertEqualSets( array( $term_id1, $term_id2 ), $terms8 ); } + /** + * @ticket 26903 + */ function test_get_terms_parent_zero() { $tax = 'food'; register_taxonomy( $tax, 'post', array( 'hierarchical' => true ) ); @@ -274,6 +280,9 @@ class Tests_Term_getTerms extends WP_UnitTestCase { $this->assertEquals( wp_list_pluck( $terms, 'name' ), array( 'Cheese', 'Crackers' ) ); } + /** + * @ticket 26903 + */ function test_get_terms_grandparent_zero() { $tax = 'food'; register_taxonomy( $tax, 'post', array( 'hierarchical' => true ) ); @@ -293,6 +302,9 @@ class Tests_Term_getTerms extends WP_UnitTestCase { _unregister_taxonomy( $tax ); } + /** + * @ticket 26903 + */ function test_get_terms_seven_levels_deep() { $tax = 'deep'; register_taxonomy( $tax, 'post', array( 'hierarchical' => true ) );