diff --git a/core/modules/views/src/Tests/ViewResultAssertionTrait.php b/core/modules/views/src/Tests/ViewResultAssertionTrait.php index 243d90c57a..e44d29654d 100644 --- a/core/modules/views/src/Tests/ViewResultAssertionTrait.php +++ b/core/modules/views/src/Tests/ViewResultAssertionTrait.php @@ -81,7 +81,7 @@ protected function assertIdenticalResultsetHelper($view, $expected_result, $colu $row[$expected_column] = (string) $value->$view_column; } elseif ($value->hasValue($view_column)) { - $row[$expected_column] = (string) $value->getValue($view_column); + $row[$expected_column] = $value->getValue($view_column); } // For entity fields we don't have the raw value. Let's try to fetch it // using the entity itself.