Changeset 45607 for trunk/tests/phpunit/tests/term/wpTaxonomy.php
- Timestamp:
- 07/08/2019 12:55:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/wpTaxonomy.php
r43571 r45607 23 23 24 24 $taxonomy_object->add_rewrite_rules(); 25 $this->assertFalse( in_array( 'foobar', $wp->public_query_vars ) );25 $this->assertFalse( in_array( 'foobar', $wp->public_query_vars, true ) ); 26 26 } 27 27 … … 44 44 45 45 $taxonomy_object->add_rewrite_rules(); 46 $in_array = in_array( 'foobar', $wp->public_query_vars );46 $in_array = in_array( 'foobar', $wp->public_query_vars, true ); 47 47 48 48 $taxonomy_object->remove_rewrite_rules(); 49 $in_array_after = in_array( 'foobar', $wp->public_query_vars );49 $in_array_after = in_array( 'foobar', $wp->public_query_vars, true ); 50 50 51 51 $this->assertTrue( $in_array ); … … 75 75 $rewrite_tags_after = $wp_rewrite->rewritecode; 76 76 77 $this->assertNotFalse( array_search( "%$taxonomy%", $rewrite_tags ) );78 $this->assertFalse( array_search( "%$taxonomy%", $rewrite_tags_after ) );77 $this->assertNotFalse( array_search( "%$taxonomy%", $rewrite_tags, true ) ); 78 $this->assertFalse( array_search( "%$taxonomy%", $rewrite_tags_after, true ) ); 79 79 } 80 80
Note: See TracChangeset
for help on using the changeset viewer.