Skip to content
Snippets Groups Projects
Commit 81288d5e authored by Dmytrii Kaiun's avatar Dmytrii Kaiun Committed by Jonathan Sacksick
Browse files

Issue #3351548 by tBKoT: Changed error message in Drupal 10.1.

parent 4c5abd27
No related branches found
No related tags found
No related merge requests found
......@@ -196,7 +196,7 @@ class CustomerProfileTest extends OrderWebDriverTestBase {
$this->getSession()->reload();
$this->getSession()->getPage()->pressButton('billing_edit');
$this->assertSession()->assertWaitOnAjaxRequest();
$this->assertSession()->pageTextContains('An illegal choice has been detected.');
$this->assertSession()->pageTextMatches('/An illegal choice has been detected\.|The submitted value (.*) in the (.*) element is not allowed\./');
$this->assertSession()->pageTextContains($this->usAddress['postal_code']);
$this->assertSession()->pageTextNotContains('29617');
\Drupal::state()->delete('commerce_order_forge_profile_selection');
......
......@@ -380,7 +380,7 @@ class ProductVariation extends CommerceContentEntityBase implements ProductVaria
// variable will be NULL.
// @see https://www.drupal.org/project/commerce/issues/3342331
if (!$variation_type instanceof ProductVariationTypeInterface) {
return;
return;
}
if ($variation_type->shouldGenerateTitle()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment