diff --git a/Classes/Core/Functional/FunctionalTestCase.php b/Classes/Core/Functional/FunctionalTestCase.php index f2210cbd..4c82786c 100644 --- a/Classes/Core/Functional/FunctionalTestCase.php +++ b/Classes/Core/Functional/FunctionalTestCase.php @@ -747,6 +747,10 @@ protected function getDifferentFields(array $assertion, array $record): array continue; } + if (!array_key_exists($field, $record)) { + throw new \ValueError(sprintf('"%s" column not found in the input data.', $field)); + } + if (strpos($value, 'assertXmlStringEqualsXmlString((string)$value, (string)$record[$field]);