/**
* Tests rendering as a link without a path.
*
* @covers ::renderAsLink
*/
public function testRenderAsLinkWithoutPath() { $alter =
[ 'make_link' => TRUE,
];
$this->
setUpUrlIntegrationServices();
$field =
$this->
setupTestField(['alter' =>
$alter]);
$field->field_alias = 'key';
$row =
new ResultRow(['key' => 'value'
]);
$expected_result = 'value';
$result =
$field->
advancedRender($row);
$this->
assertEquals($expected_result,
$result);
} /**
* Tests rendering with a more link.
*
* @param string $path
* An internal or external path.
* @param string $url
* The final URL used by the more link.
*
* @dataProvider providerTestRenderTrimmedWithMoreLinkAndPath
* @covers ::renderText
*/