$this->expectExceptionMessage('The generic FieldItemNormalizer cannot denormalize string values for "options" properties of the "field_test" field (field item class: Drupal\link\Plugin\Field\FieldType\LinkItem).');
@@ -86,7 +86,7 @@ public function testPathPlugin(): void {
// Test with view_mode full.
$output=$view->preview();
$output=$renderer->renderRoot($output);
$output=(string)$renderer->renderRoot($output);
foreach($this->nodesas$node){
$this->assertStringContainsString('This is <strong>not escaped</strong> and this is '.$node->toLink('the link')->toString(),$output,'Make sure path field rewriting is not escaped.');