[BUGFIX] Fix broken functional tests 50/42450/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:09:39 +0000 (12:09 +0200)
Change-Id: I742c16a2689fd7ec89abf3620a618a99f24779a7
Resolves: #68882
Relates: #68871
Reviewed-on: http://review.typo3.org/42450
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Daniel Maier <dani-maier@gmx.de>
Tested-by: Daniel Maier <dani-maier@gmx.de>
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 181efb2..f73368a 100644 (file)
@@ -233,22 +233,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>#'
                        ),
                );
        }
@@ -272,7 +272,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);