Skip to content

Commit

Permalink
Merge pull request #2389 from 10up/chore/check-tests-group-woocommerc…
Browse files Browse the repository at this point in the history
…e-issue-2335

Update tests on group woocommerce to check if EP is used
  • Loading branch information
felipeelia authored Oct 11, 2021
2 parents 1afa7f3 + 4c8eab2 commit 240a9e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/php/features/TestWooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ public function testProductsPostTypeQueryOn() {
);

$query = new \WP_Query( $args );

$this->assertTrue( $query->elasticsearch_success );
$this->assertEquals( 1, $query->post_count );
$this->assertEquals( 1, $query->found_posts );

Expand Down Expand Up @@ -115,7 +117,7 @@ public function testProductsPostTypeQueryProductCatTax() {

$query = new \WP_Query( $args );

$this->assertTrue( ! empty( $this->fired_actions['ep_wp_query_search'] ) );
$this->assertTrue( $query->elasticsearch_success );
}

/**
Expand Down Expand Up @@ -147,7 +149,7 @@ public function testSearchOnShopOrderAdmin() {

$query = new \WP_Query( $args );

$this->assertTrue( ! empty( $this->fired_actions['ep_wp_query_search'] ) );
$this->assertTrue( $query->elasticsearch_success );
$this->assertEquals( 1, $query->post_count );
$this->assertEquals( 1, $query->found_posts );
}
Expand All @@ -173,6 +175,6 @@ public function testSearchOnAllFrontEnd() {

$query = new \WP_Query( $args );

$this->assertTrue( ! empty( $this->fired_actions['ep_wp_query_search'] ) );
$this->assertTrue( $query->elasticsearch_success );
}
}

0 comments on commit 240a9e0

Please sign in to comment.