Skip to content

[WooCommerce 3.3.0] Failures in tests that expect a payment error #41

@JDGrimes

Description

@JDGrimes

The error is still thrown, but the HTML is not identical:

1) WordPoints_WooCommerce_Points_Gateway_Test::test_processing_payment
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-<ul class="woocommerce-error">
+<ul class="woocommerce-error" role="alert">
 			<li>WordPoints_WooCommerce_Points_Gateway_Test</li>
 	</ul>

/Users/johngrimes/git/_wordpoints-modules/woocommerce/tests/phpunit/tests/points/gateways/points.php:521
/Users/johngrimes/git/_wordpoints-modules/woocommerce/tests/phpunit/tests/points/gateways/points.php:193

We should ideally make the tests a bit more generic, I guess.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions