[BUGFIX] Correct trim of trailing slash
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Tests / Unit / FolderStructure / LinkNodeTest.php
index 5d05d1b..1ccc665 100644 (file)
@@ -312,8 +312,8 @@ class LinkNodeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $node = $this->getAccessibleMock(\TYPO3\CMS\Install\FolderStructure\LinkNode::class, array('exists', 'isLink', 'getCurrentTarget', 'getTarget'), array(), '', FALSE);
                $node->expects($this->any())->method('exists')->will($this->returnValue(TRUE));
                $node->expects($this->any())->method('isLink')->will($this->returnValue(TRUE));
-               $node->expects($this->once())->method('getCurrentTarget')->will($this->returnValue('someLinkTarget'));
-               $node->expects($this->once())->method('getTarget')->will($this->returnValue('someLinkTarget/'));
+               $node->expects($this->once())->method('getCurrentTarget')->will($this->returnValue('someLinkTarget/'));
+               $node->expects($this->once())->method('getTarget')->will($this->returnValue('someLinkTarget'));
                $this->assertTrue($node->_call('isTargetCorrect'));
        }