X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FConfig%2FTypedConfigTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FKernelTests%2FConfig%2FTypedConfigTest.php;h=bc9c441d517ec38edfdd910a9ab7a85544c7614c;hp=06881f2564167e4f594dcbe7e6306e14ac87bb50;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/KernelTests/Config/TypedConfigTest.php b/web/core/tests/Drupal/KernelTests/Config/TypedConfigTest.php index 06881f256..bc9c441d5 100644 --- a/web/core/tests/Drupal/KernelTests/Config/TypedConfigTest.php +++ b/web/core/tests/Drupal/KernelTests/Config/TypedConfigTest.php @@ -155,11 +155,12 @@ class TypedConfigTest extends KernelTestBase { $value = $typed_config->getValue(); unset($value['giraffe']); $value['elephant'] = 'foo'; + $value['zebra'] = 'foo'; $typed_config->setValue($value); $result = $typed_config->validate(); $this->assertCount(1, $result); $this->assertEquals('', $result->get(0)->getPropertyPath()); - $this->assertEquals('Missing giraffe.', $result->get(0)->getMessage()); + $this->assertEquals('Unexpected keys: elephant, zebra', $result->get(0)->getMessage()); } }