[FOLLOWUP][BUGFIX] Only write out one shortcut tag 56/36856/2
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 12 Feb 2015 10:13:32 +0000 (11:13 +0100)
committerNicole Cordes <typo3@cordes.co>
Thu, 12 Feb 2015 10:30:43 +0000 (11:30 +0100)
Fix failing functional test.

Resolves: #24479
Releases: master
Change-Id: I05e0c292a66f90b377c3bd97491ec82eeafe6ed2
Reviewed-on: http://review.typo3.org/36856
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php

index dfef737..fc69e86 100644 (file)
@@ -41,7 +41,6 @@ class PageRendererTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
                $favouriteIcon = 'http://google.com/favicon.ico';
                $subject->setFavIcon($favouriteIcon);
                $expectedFavouriteIconPartOne = '<link rel="shortcut icon" href="' . $favouriteIcon . '" />';
-               $expectedFavouriteIconPartTwo = '<link rel="icon" href="' . $favouriteIcon . '" />';
 
                $baseUrl = 'http://google.com/';
                $subject->setBaseUrl($baseUrl);
@@ -104,7 +103,6 @@ class PageRendererTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
                $this->assertContains($expectedTitleString, $renderedString);
                $this->assertContains($expectedCharsetString, $renderedString);
                $this->assertContains($expectedFavouriteIconPartOne, $renderedString);
-               $this->assertContains($expectedFavouriteIconPartTwo, $renderedString);
                $this->assertContains($expectedBaseUrlString, $renderedString);
                $this->assertContains($expectedMetaTagString, $renderedString);
                $this->assertContains($expectedInlineCommentString, $renderedString);