Changeset 28783 for trunk/tests/phpunit/tests/term/query.php
- Timestamp:
- 06/20/2014 04:20:35 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/query.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/query.php
r28664 r28783 204 204 } 205 205 206 /** 207 * @ticket 28099 208 */ 206 209 function test_empty__in() { 207 210 $cat_id = $this->factory->category->create(); … … 212 215 $this->assertNotEmpty( $q1 ); 213 216 $q2 = get_posts( array( 'category__in' => array() ) ); 214 $this->assert Empty( $q2 );217 $this->assertNotEmpty( $q2 ); 215 218 216 219 $tag = wp_insert_term( 'woo', 'post_tag' ); … … 222 225 $this->assertNotEmpty( $q3 ); 223 226 $q4 = get_posts( array( 'tag__in' => array() ) ); 224 $this->assert Empty( $q4 );227 $this->assertNotEmpty( $q4 ); 225 228 226 229 $q5 = get_posts( array( 'tag_slug__in' => array( $slug ) ) ); 227 230 $this->assertNotEmpty( $q5 ); 228 231 $q6 = get_posts( array( 'tag_slug__in' => array() ) ); 229 $this->assert Empty( $q6 );232 $this->assertNotEmpty( $q6 ); 230 233 } 231 234 }
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)