Changeset 25257 for trunk/tests/phpunit/tests/term/getTerms.php
- Timestamp:
- 09/05/2013 05:14:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTerms.php
r25241 r25257 122 122 123 123 /** 124 * @ti 125 * cket 11823 124 * @ticket 11823 126 125 */ 127 126 function test_get_terms_include_exclude() { 127 global $wpdb; 128 128 129 $term_id1 = $this->factory->tag->create(); 129 130 $term_id2 = $this->factory->tag->create(); … … 139 140 ) ); 140 141 $this->assertEquals( array(), wp_list_pluck( $exc_terms, 'term_id' ) ); 142 143 // These should not generate query errors. 144 get_terms( 'post_tag', array( 'exclude' => array( 0 ), 'hide_empty' => false ) ); 145 $this->assertEmpty( $wpdb->last_error ); 146 147 get_terms( 'post_tag', array( 'exclude' => array( 'unexpected-string' ), 'hide_empty' => false ) ); 148 $this->assertEmpty( $wpdb->last_error ); 149 150 get_terms( 'post_tag', array( 'include' => array( 'unexpected-string' ), 'hide_empty' => false ) ); 151 $this->assertEmpty( $wpdb->last_error ); 141 152 } 142 153
Note: See TracChangeset
for help on using the changeset viewer.