Changeset 64326
- Timestamp:
- 10/13/2026 06:26:50 AM (4 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php
r64233 r64326 73 73 } 74 74 75 public function set_up() { 76 parent::set_up(); 77 75 /** 76 * Registers metadata fields for tests that exercise term metadata. 77 */ 78 private function register_test_meta() { 78 79 register_meta( 79 80 'term', … … 730 731 */ 731 732 public function test_get_item_meta() { 733 $this->register_test_meta(); 734 732 735 $id = self::factory()->tag->create(); 733 736 … … 752 755 */ 753 756 public function test_get_item_meta_registered_for_different_taxonomy() { 757 $this->register_test_meta(); 758 754 759 $id = self::factory()->tag->create(); 755 760 … … 870 875 871 876 public function test_create_item_with_meta() { 877 $this->register_test_meta(); 878 872 879 wp_set_current_user( self::$administrator ); 873 880 … … 885 892 886 893 public function test_create_item_with_meta_wrong_id() { 894 $this->register_test_meta(); 895 887 896 wp_set_current_user( self::$administrator ); 888 897 … … 904 913 905 914 public function test_update_item() { 915 $this->register_test_meta(); 916 906 917 wp_set_current_user( self::$administrator ); 907 918
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)