|
|
|
@ -78,11 +78,12 @@ class IslandoraImageFormatterTest extends IslandoraFunctionalTestBase {
|
|
|
|
|
// Assert that the image is rendered into html as a link pointing |
|
|
|
|
// to the Node, not the Media (that's what the islandora_image |
|
|
|
|
// formatter does). |
|
|
|
|
|
|
|
|
|
$elements = $this->xpath( |
|
|
|
|
'//a[@href=:path]/img[@src=:url and @alt=:alt and @title=:title]', |
|
|
|
|
[ |
|
|
|
|
':path' => $node->toUrl()->toString(), |
|
|
|
|
':url' => file_url_transform_relative(file_create_url($file->getFileUri())), |
|
|
|
|
':url' => $file->createFileUrl(), |
|
|
|
|
':alt' => 'Some Alt', |
|
|
|
|
':title' => 'Some Title', |
|
|
|
|
] |
|
|
|
|