Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
John Spellman committed Mar 23, 2023
1 parent fd04129 commit c6f1f14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/test-solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,13 @@ function test_facet_blogid_multisite() {
switch_to_blog( $blog2 );
$p_id2 = $this->__create_test_post( 'post', 'Best Films of 2015' );
$args = array(
's' => 'Best Films',
's' => 'Best Films of 2015',
);
$query = new WP_Query( $args );
$this->assertEquals( array( $p_id2 ), wp_list_pluck( $query->posts, 'ID' ) );
switch_to_blog( 1 );
$args = array(
's' => 'Best Films',
's' => 'Best Films of 2015',
);
$query = new WP_Query( $args );
$this->assertEquals( array( $p_id ), wp_list_pluck( $query->posts, 'ID' ) );
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/wp_query/test-wp-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function setUp(): void {
function test_simple_wp_query() {
$this->__create_test_post();
$args = array(
's' => 'solr'
's' => 'solr test'
);
$query = new WP_Query( $args );
$this->assertEquals( $query->post_count, 1 );
Expand Down Expand Up @@ -45,7 +45,7 @@ function test_simple_wp_query() {
function test_simple_wp_query_solr_integrate() {
$this->__create_test_post();
$args = array(
's' => 'solr',
's' => 'solr test',
'solr_integrate' => true,
);
$query = new WP_Query( $args );
Expand Down

0 comments on commit c6f1f14

Please sign in to comment.