You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the unit tests with WooCommerce 9.2.1 the test for the SKU fails:
1) Automattic\WooCommerce\GoogleListingsAndAds\Tests\Unit\Product\AttributeMapping\AttributeMappingWCProductAdapterTest::test_maps_rules_product_fields_sku
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'DUMMY SKU'
+'DUMMY SKU56'
wp-content/plugins/google-listings-and-ads/tests/Unit/Product/AttributeMapping/AttributeMappingWCProductAdapterTest.php:115
FAILURES!
Tests: 1276, Assertions: 4031, Failures: 1.
Re-running the tests with 9.1.0 works again. I haven't checked what could be causing the error, but 9.2 introduced a global unique identifier field next to the SKU, so possibly there could be something conflicting there.
Steps to reproduce:
Install latest versions for unit testing bin/install-wp-tests.sh <db_name> <db_user> <db_pass>
Run unit tests `vendor/bin/phpunit
Confirm that the test test_maps_rules_product_fields_sku fails
Expected behavior:
All unit tests to pass on the latest version of WooCommerce
The text was updated successfully, but these errors were encountered:
Describe the bug:
When running the unit tests with WooCommerce 9.2.1 the test for the SKU fails:
Re-running the tests with 9.1.0 works again. I haven't checked what could be causing the error, but 9.2 introduced a global unique identifier field next to the SKU, so possibly there could be something conflicting there.
Steps to reproduce:
bin/install-wp-tests.sh <db_name> <db_user> <db_pass>
test_maps_rules_product_fields_sku
failsExpected behavior:
All unit tests to pass on the latest version of WooCommerce
The text was updated successfully, but these errors were encountered: