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