Mercurial > hg > cmmr2012-drupal-site
diff core/modules/user/tests/src/Kernel/UserValidationTest.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- a/core/modules/user/tests/src/Kernel/UserValidationTest.php Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/user/tests/src/Kernel/UserValidationTest.php Thu Feb 28 13:11:55 2019 +0000 @@ -215,7 +215,7 @@ protected function assertAllowedValuesViolation(EntityInterface $entity, $field_name) { $violations = $entity->validate(); $this->assertEqual(count($violations), 1, "Allowed values violation for $field_name found."); - $this->assertEqual($violations[0]->getPropertyPath(), "$field_name.0.value"); + $this->assertEqual($violations[0]->getPropertyPath(), $field_name === 'langcode' ? "$field_name.0" : "$field_name.0.value"); $this->assertEqual($violations[0]->getMessage(), t('The value you selected is not a valid choice.')); }