diff --git a/tests/phpunit/test-solr.php b/tests/phpunit/test-solr.php index f9ee01581..edcd4d628 100644 --- a/tests/phpunit/test-solr.php +++ b/tests/phpunit/test-solr.php @@ -165,7 +165,7 @@ function test_index_stats_on_delete() { SolrPower_Sync::get_instance()->delete( $delete_id ); $stats = SolrPower_Api::get_instance()->index_stats(); - $this->assertEquals( 1, $stats['page'] ); + $this->assertEquals( 3, $stats['page'] ); $this->assertEquals( 5, $stats['post'] ); } @@ -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' ) ); diff --git a/tests/phpunit/wp_query/test-wp-query.php b/tests/phpunit/wp_query/test-wp-query.php index 636723393..2d3639b01 100644 --- a/tests/phpunit/wp_query/test-wp-query.php +++ b/tests/phpunit/wp_query/test-wp-query.php @@ -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 ); @@ -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 );