[BUGFIX] Fix broken functional tests 53/42453/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 9 Aug 2015 10:06:03 +0000 (12:06 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 9 Aug 2015 10:13:12 +0000 (12:13 +0200)
Change-Id: I742c16a2689fd7ec89abf3620a618a99f24779a7
Resolves: #68882
Relates: #68871
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/42453
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Tests/Functional/Page/PageRendererTest.php

index 39cf0f7..4cb5243 100644 (file)
@@ -304,22 +304,22 @@ class PageRendererTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
                        'google with version number' => array(
                                '1.6.3',
                                'google',
-                               '#<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.js" type="text/javascript"></script>#'
+                               '#<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.js" type="text/javascript"></script>#'
                        ),
                        'msn with version number' => array(
                                '1.6.3',
                                'msn',
-                               '#<script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.3.js" type="text/javascript"></script>#'
+                               '#<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.3.js" type="text/javascript"></script>#'
                        ),
                        'jquery with version number' => array(
                                '1.6.3',
                                'jquery',
-                               '#<script src="http://code.jquery.com/jquery-1.6.3.js" type="text/javascript"></script>#'
+                               '#<script src="https://code.jquery.com/jquery-1.6.3.js" type="text/javascript"></script>#'
                        ),
                        'jquery with custom URL' => array(
                                '1.6.3',
-                               'http://my.cool.cdn/foo/jquery.js',
-                               '#<script src="http://my.cool.cdn/foo/jquery.js" type="text/javascript"></script>#'
+                               'https://my.cool.cdn/foo/jquery.js',
+                               '#<script src="https://my.cool.cdn/foo/jquery.js" type="text/javascript"></script>#'
                        ),
                );
        }
@@ -343,7 +343,7 @@ class PageRendererTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
        public function isJqueryLoadedMinifiedFromGoogleByDefault() {
                $subject = new \TYPO3\CMS\Core\Page\PageRenderer();
 
-               $expectedRegex = '#<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js" type="text/javascript"></script>#';
+               $expectedRegex = '#<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js" type="text/javascript"></script>#';
                $subject->loadJquery('1.6.3', 'google');
                $out = $subject->render();
                $this->assertRegExp($expectedRegex, $out);