Changeset 45607 for trunk/tests/phpunit/tests/post/wpPostType.php
- Timestamp:
- 07/08/2019 12:55:20 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpPostType.php
r43571 r45607 79 79 $post_type_object->add_rewrite_rules(); 80 80 81 $this->assertFalse( in_array( 'foobar', $wp->public_query_vars ) );81 $this->assertFalse( in_array( 'foobar', $wp->public_query_vars, true ) ); 82 82 } 83 83 … … 99 99 100 100 $post_type_object->add_rewrite_rules(); 101 $in_array = in_array( 'foobar', $wp->public_query_vars );101 $in_array = in_array( 'foobar', $wp->public_query_vars, true ); 102 102 103 103 $post_type_object->remove_rewrite_rules(); 104 $in_array_after = in_array( 'foobar', $wp->public_query_vars );104 $in_array_after = in_array( 'foobar', $wp->public_query_vars, true ); 105 105 106 106 $this->assertTrue( $in_array ); … … 129 129 $rewrite_tags_after = $wp_rewrite->rewritecode; 130 130 131 $this->assertNotFalse( array_search( "%$post_type%", $rewrite_tags ) );132 $this->assertFalse( array_search( "%$post_type%", $rewrite_tags_after ) );131 $this->assertNotFalse( array_search( "%$post_type%", $rewrite_tags, true ) ); 132 $this->assertFalse( array_search( "%$post_type%", $rewrite_tags_after, true ) ); 133 133 } 134 134
Note: See TracChangeset
for help on using the changeset viewer.