Neos\Neos\Tests\Unit\TypoScript\ConvertUrisImplementationTest::evaluateReplacesUnresolvableNodeUrisWithAnEmptyString PHP Метод

evaluateReplacesUnresolvableNodeUrisWithAnEmptyString() публичный Метод

This only verifies the current behavior that might be changed in the future (e.g. we could remove unresolved links instead of creating empty href attributes)
    public function evaluateReplacesUnresolvableNodeUrisWithAnEmptyString()
    {
        $unknownNodeIdentifier = 'aeabe76a-551a-495f-a324-ad9a86b2aff7';
        $value = 'This string contains an unresolvable node URI: node://' . $unknownNodeIdentifier . ' and a <a href="node://' . $unknownNodeIdentifier . '">link</a>.';
        $this->addValueExpectation($value);
        $this->mockWorkspace->expects($this->any())->method('getName')->will($this->returnValue('live'));
        $expectedResult = 'This string contains an unresolvable node URI:  and a link.';
        $actualResult = $this->convertUrisImplementation->evaluate();
        $this->assertSame($expectedResult, $actualResult);
    }