diff --git a/Neos.Neos/Tests/Unit/Fusion/ConvertUrisImplementationTest.php b/Neos.Neos/Tests/Unit/Fusion/ConvertUrisImplementationTest.php
index 856e28fc0d4..335650f12c4 100644
--- a/Neos.Neos/Tests/Unit/Fusion/ConvertUrisImplementationTest.php
+++ b/Neos.Neos/Tests/Unit/Fusion/ConvertUrisImplementationTest.php
@@ -326,9 +326,24 @@ public function evaluateReplaceResourceLinkTargets()
*/
public function disablingSetNoOpenerWorks()
{
- $value = 'This string contains an external link: example3';
- $this->addValueExpectation($value, null, false, '_blank', null, false, false);
- $expectedResult = 'This string contains an external link: example3';
+ $nodeIdentifier = 'aeabe76a-551a-495f-a324-ad9a86b2aff7';
+ $externalLinkTarget = '_blank';
+
+ $value = 'This string contains a link to a node: node and one to an external url with a target set example and one without a target example2';
+ $this->addValueExpectation($value, null, false, $externalLinkTarget, null, false, false);
+
+ $this->mockWorkspace->expects(self::any())->method('getName')->will(self::returnValue('live'));
+
+ $self = $this;
+ $this->mockLinkingService->expects(self::atLeastOnce())->method('resolveNodeUri')->will(self::returnCallback(function ($nodeUri) use ($self, $nodeIdentifier) {
+ if ($nodeUri === 'node://' . $nodeIdentifier) {
+ return 'http://localhost/uri/01';
+ } else {
+ $self->fail('Unexpected node URI "' . $nodeUri . '"');
+ }
+ }));
+
+ $expectedResult = 'This string contains a link to a node: node and one to an external url with a target set example and one without a target example2';
$actualResult = $this->convertUrisImplementation->evaluate();
self::assertSame($expectedResult, $actualResult);
}