mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Build/Test Tools: Add @covers tags to the taxonomy and category test groups.
Props pbeane, hellofromTonya, ironprogrammer, antonvlasenko, SergeyBiryukov, costdev. See #39265. git-svn-id: https://develop.svn.wordpress.org/trunk@53684 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -18,6 +18,8 @@ class Tests_Category extends WP_UnitTestCase {
|
||||
* Validate get_all_category_ids
|
||||
*
|
||||
* @expectedDeprecated get_all_category_ids
|
||||
*
|
||||
* @covers ::get_all_category_ids
|
||||
*/
|
||||
public function test_get_all_category_ids() {
|
||||
// Ccreate categories.
|
||||
@@ -34,6 +36,8 @@ class Tests_Category extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Validate get_category_by_slug function
|
||||
*
|
||||
* @covers ::get_category_by_slug
|
||||
*/
|
||||
public function test_get_category_by_slug() {
|
||||
|
||||
@@ -64,6 +68,8 @@ class Tests_Category extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Validate _make_cat_compat function
|
||||
*
|
||||
* @covers ::_make_cat_compat
|
||||
*/
|
||||
public function test__make_cat_compat() {
|
||||
|
||||
@@ -141,6 +147,8 @@ class Tests_Category extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Validate get_cat_name function
|
||||
*
|
||||
* @covers ::get_cat_name
|
||||
*/
|
||||
public function test_get_cat_name() {
|
||||
|
||||
@@ -161,6 +169,8 @@ class Tests_Category extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Validate get_cat_name function
|
||||
*
|
||||
* @covers ::get_cat_ID
|
||||
*/
|
||||
public function test_get_cat_ID() {
|
||||
|
||||
@@ -181,6 +191,8 @@ class Tests_Category extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* Validate get_category_by_path function
|
||||
*
|
||||
* @covers ::get_category_by_path
|
||||
*/
|
||||
public function test_get_category_by_path() {
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
/**
|
||||
* @group taxonomy
|
||||
*
|
||||
* @covers ::category_description
|
||||
*/
|
||||
class Tests_Category_CategoryDescription extends WP_UnitTestCase {
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
/**
|
||||
* @group taxonomy
|
||||
* @group category.php
|
||||
*
|
||||
* @covers ::get_categories
|
||||
*/
|
||||
class Tests_Category_GetCategories extends WP_UnitTestCase {
|
||||
/**
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
/**
|
||||
* @group taxonomy
|
||||
*
|
||||
* @covers ::get_category_link
|
||||
*/
|
||||
class Tests_Category_GetCategoryLink extends WP_UnitTestCase {
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
/**
|
||||
* @group taxonomy
|
||||
*
|
||||
* @covers ::get_category_parents
|
||||
*/
|
||||
class Tests_Category_GetCategoryParents extends WP_UnitTestCase {
|
||||
protected $c1;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
/**
|
||||
* @group taxonomy
|
||||
*
|
||||
* @covers ::get_the_category_by_ID
|
||||
*/
|
||||
class Tests_Category_GetTheCategoryById extends WP_UnitTestCase {
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
/**
|
||||
* @group taxonomy
|
||||
* @group walker
|
||||
*
|
||||
* @covers Walker_Category::start_el
|
||||
*/
|
||||
class Tests_Category_Walker_Category extends WP_UnitTestCase {
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
/**
|
||||
* @group taxonomy
|
||||
* @group category.php
|
||||
*
|
||||
* @covers ::wp_dropdown_categories
|
||||
*/
|
||||
class Tests_Category_WpDropdownCategories extends WP_UnitTestCase {
|
||||
/**
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
/**
|
||||
* @group taxonomy
|
||||
*
|
||||
* @covers ::wp_list_categories
|
||||
*/
|
||||
class Tests_Category_WpListCategories extends WP_UnitTestCase {
|
||||
public function test_class() {
|
||||
|
||||
Reference in New Issue
Block a user