Skip to content

Commit

Permalink
Update test_single_product_header unit test regex
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Nov 6, 2023
1 parent ff18313 commit 0c10509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .dev/tests/php/test-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ function test_single_product_header() {

$this->initialize_woo_session();

$this->expectOutputRegex( '/<div class="product-navigation-wrapper">\\n(\s*)<a href="(.*)" class="back-to-shop">Back<\/a>(\s*)<\/div>/' );
$this->expectOutputRegex( sprintf( '/<div class="product-navigation-wrapper">\\n(\s*)<nav class="woocommerce-breadcrumb" aria-label="Breadcrumb">Shop Page<\/nav><a href="http:\/\/localhost:8889\/\?page_id=%s" class="back-to-shop">/', get_option( 'woocommerce_shop_page_id' ) ) );

Go\WooCommerce\single_product_header();

Expand Down

0 comments on commit 0c10509

Please sign in to comment.