Changeset 60251 for trunk/tests/phpunit/tests/taxonomy.php
- Timestamp:
- 05/26/2025 12:03:18 PM (13 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/taxonomy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/taxonomy.php
r56642 r60251 29 29 30 30 public function test_get_post_taxonomy() { 31 foreach ( get_object_taxonomies( 'post' ) as $taxonomy ) { 31 $taxonomies = get_object_taxonomies( 'post' ); 32 33 $this->assertNotEmpty( $taxonomies ); 34 35 foreach ( $taxonomies as $taxonomy ) { 32 36 $tax = get_taxonomy( $taxonomy ); 33 37 // Should return an object with the correct taxonomy object type. … … 111 115 112 116 public function test_get_link_taxonomy() { 113 foreach ( get_object_taxonomies( 'link' ) as $taxonomy ) { 117 $taxonomies = get_object_taxonomies( 'link' ); 118 119 $this->assertNotEmpty( $taxonomies ); 120 121 foreach ( $taxonomies as $taxonomy ) { 114 122 $tax = get_taxonomy( $taxonomy ); 115 123 // Should return an object with the correct taxonomy object type.
Note: See TracChangeset
for help on using the changeset viewer.