Changeset 52010 for trunk/tests/phpunit/tests/category.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/category.php
r51568 r52010 10 10 class Tests_Category extends WP_UnitTestCase { 11 11 12 function tear_down() {12 public function tear_down() { 13 13 _unregister_taxonomy( 'test_tax_cat' ); 14 14 parent::tear_down(); … … 20 20 * @expectedDeprecated get_all_category_ids 21 21 */ 22 function test_get_all_category_ids() {22 public function test_get_all_category_ids() { 23 23 // Ccreate categories. 24 24 self::factory()->category->create_many( 2 ); … … 36 36 * Validate get_category_by_slug function 37 37 */ 38 function test_get_category_by_slug() {38 public function test_get_category_by_slug() { 39 39 40 40 // Create test categories. … … 66 66 * Validate _make_cat_compat function 67 67 */ 68 function test__make_cat_compat() {68 public function test__make_cat_compat() { 69 69 70 70 // Create test categories and array representations. … … 143 143 * Validate get_cat_name function 144 144 */ 145 function test_get_cat_name() {145 public function test_get_cat_name() { 146 146 147 147 // Create test category. … … 163 163 * Validate get_cat_name function 164 164 */ 165 function test_get_cat_ID() {165 public function test_get_cat_ID() { 166 166 167 167 // Create test category. … … 183 183 * Validate get_category_by_path function 184 184 */ 185 function test_get_category_by_path() {185 public function test_get_category_by_path() { 186 186 187 187 // Create test categories.
Note: See TracChangeset
for help on using the changeset viewer.