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 f00101f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/phpunit/test-solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
}

Expand Down 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 f00101f

Please sign in to comment.