Skip to content

Commit f8e591e

Browse files
committed
Configure WPCLI for tests in v4
1 parent b3c8163 commit f8e591e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/EndToEnd.suite.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ modules:
1313
- lucatume\WPBrowser\Module\WPDb
1414
- lucatume\WPBrowser\Module\WPFilesystem
1515
- lucatume\WPBrowser\Module\WPLoader
16+
- lucatume\WPBrowser\Module\WPCLI
1617

1718
# Codeception supplied classes, which provide assertions and filesystem functions
1819
- \Codeception\Module\Asserts
@@ -33,6 +34,9 @@ modules:
3334
- \Tests\Support\Helper\WPQuickEdit
3435
- \Tests\Support\Helper\Xdebug
3536
config:
37+
lucatume\WPBrowser\Module\WPCLI:
38+
path: '%WORDPRESS_ROOT_DIR%'
39+
throw: true
3640
lucatume\WPBrowser\Module\WPWebDriver:
3741
url: '%WORDPRESS_URL%'
3842
adminUsername: '%WORDPRESS_ADMIN_USER%'

tests/Support/Helper/WooCommerce.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ public function wooCommerceDeleteAllOrders($I)
10641064
$I->dontHavePostInDatabase([ 'post_type' => 'shop_order' ]);
10651065

10661066
// Delete from wp_wc_orders and wp_wc_orders_meta HPOS tables.
1067-
$I->dontHaveInDatabase('wp_wc_orders', [ 'parent_order_id' => 0 ]);
1068-
$I->dontHaveInDatabase('wp_wc_orders_meta', [ 'id >=', '0' ]);
1067+
$I->dontHaveInDatabase('wp_wc_orders', [ 'a' => 'a' ]);
1068+
$I->dontHaveInDatabase('wp_wc_orders_meta', [ 'a' => 'a' ]);
10691069
}
10701070
}

0 commit comments

Comments
 (0)