File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed
tests/phpunit/tests/points/gateways Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -503,23 +503,14 @@ protected function simulate_checkout( array $args = array() ) {
503
503
$ messages = ob_get_clean ();
504
504
505
505
if ( ! empty ( $ args ['expected_errors ' ] ) ) {
506
-
507
- $ expected_errors = ' <li> '
508
- . implode ( '' , (array ) $ args ['expected_errors ' ] )
509
- . '</li> ' . "\n" ;
510
-
506
+ $ expected_errors = $ args ['expected_errors ' ];
511
507
} else {
512
-
513
- $ expected_errors =
514
- ' <li>WordPoints_WooCommerce_Points_Gateway_Test</li> '
515
- . "\n" ;
516
-
508
+ $ expected_errors = 'WordPoints_WooCommerce_Points_Gateway_Test ' ;
517
509
}
518
510
519
- $ this ->assertSame (
520
- '<ul class="woocommerce-error"> ' . "\n" . $ expected_errors . ' </ul> '
521
- , trim ( $ messages )
522
- );
511
+ foreach ( (array ) $ expected_errors as $ expected_error ) {
512
+ $ this ->assertStringContains ( $ expected_error , $ messages );
513
+ }
523
514
}
524
515
525
516
/**
You can’t perform that action at this time.
0 commit comments