From 9250ae922438163c352da617d15a758f4379a9b2 Mon Sep 17 00:00:00 2001 From: Julian Pustkuchen <3110-Anybody@users.noreply.drupalcode.org> Date: Wed, 10 May 2023 12:47:12 +0000 Subject: [PATCH] Playing around with the test to find the error. --- tests/src/Kernel/EntityViewBuilderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Kernel/EntityViewBuilderTest.php b/tests/src/Kernel/EntityViewBuilderTest.php index 3a05f40..5965209 100644 --- a/tests/src/Kernel/EntityViewBuilderTest.php +++ b/tests/src/Kernel/EntityViewBuilderTest.php @@ -92,7 +92,7 @@ final class EntityViewBuilderTest extends AbstractTestCase { HTML; $actual_html = $this->renderPlain($build); - self::assertSame(htmlspecialchars(self::normalizeHtml($expected_html)), htmlspecialchars(self::normalizeHtml($actual_html))); + self::assertSame((string)$expected_html)), (string)$actual_html)); // -- Teaser mode. $build = $view_builder->build($public_node, 'teaser');