X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fuser%2Ftests%2Fsrc%2FKernel%2FUserValidationTest.php;fp=web%2Fcore%2Fmodules%2Fuser%2Ftests%2Fsrc%2FKernel%2FUserValidationTest.php;h=98065f36b48ac2476505bb8118c78a41133cc32b;hp=4aa5850d1d9404b550ceb967c980ba1eff6b4257;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/user/tests/src/Kernel/UserValidationTest.php b/web/core/modules/user/tests/src/Kernel/UserValidationTest.php index 4aa5850d1..98065f36b 100644 --- a/web/core/modules/user/tests/src/Kernel/UserValidationTest.php +++ b/web/core/modules/user/tests/src/Kernel/UserValidationTest.php @@ -215,7 +215,7 @@ class UserValidationTest extends KernelTestBase { 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.')); }