Mercurial > hg > isophonics-drupal-site
diff core/modules/user/tests/src/Kernel/UserValidationTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/user/tests/src/Kernel/UserValidationTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/user/tests/src/Kernel/UserValidationTest.php Thu Feb 28 13:21:36 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.')); }