Changeset 47122 for trunk/tests/phpunit/tests/query/search.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/search.php
r46586 r47122 81 81 $title = '-HYPHENATION_TEST'; 82 82 83 // Create a post with a title which starts with a hyphen 83 // Create a post with a title which starts with a hyphen. 84 84 $post_id = self::factory()->post->create( 85 85 array( … … 89 89 ); 90 90 91 // By default, we can use the hyphen prefix to exclude results 91 // By default, we can use the hyphen prefix to exclude results. 92 92 $this->assertEquals( array(), $this->get_search_results( $title ) ); 93 93 94 // After we disable the feature using the filter, we should get the result 94 // After we disable the feature using the filter, we should get the result. 95 95 add_filter( 'wp_query_search_exclusion_prefix', '__return_false' ); 96 96 $result = $this->get_search_results( $title );
Note: See TracChangeset
for help on using the changeset viewer.