Changeset 61048 for trunk/tests/phpunit/tests/term/query.php
- Timestamp:
- 10/22/2025 04:28:33 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/query.php
r60729 r61048 1050 1050 1051 1051 $this->assertContains( $t1, $q->terms ); 1052 } 1053 1054 /** 1055 * @ticket 47719 1056 */ 1057 public function test_include_should_return_no_terms_when_0() { 1058 register_taxonomy( 'wptests_tax', 'post' ); 1059 1060 self::factory()->term->create_many( 3, array( 'taxonomy' => 'wptests_tax' ) ); 1061 1062 $query = new WP_Term_Query( 1063 array( 1064 'taxonomy' => 'wptests_tax', 1065 'include' => array( 0 ), 1066 ) 1067 ); 1068 1069 $expected = array(); 1070 $this->assertSame( $expected, $query->terms ); 1071 $this->assertSame( $expected, $query->get_terms() ); 1052 1072 } 1053 1073
Note: See TracChangeset
for help on using the changeset viewer.