[BUGFIX] Tests: Remove unstable GeneralUtilityTest::getUrl*
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Utility / GeneralUtilityTest.php
index 78f3014..e6d4759 100644 (file)
@@ -2641,36 +2641,6 @@ class GeneralUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                throw new \RuntimeException('foo', 1344888548);
        }
 
-       ///////////////////////////
-       // Tests concerning getUrl
-       ///////////////////////////
-
-       /**
-        * @test
-        */
-       public function getUrlWithAdditionalRequestHeadersProvidesHttpHeaderOnError() {
-               if (!$this->isConnected()) {
-                       $this->markTestSkipped('No internet connection detected');
-               }
-               $url = 'http://typo3.org/i-do-not-exist-' . time();
-               $report = array();
-               Utility\GeneralUtility::getUrl($url, 0, array(), $report);
-               $this->assertContains('404', $report['message']);
-       }
-
-       /**
-        * @test
-        */
-       public function getUrlProvidesWithoutAdditionalRequestHeadersHttpHeaderOnError() {
-               if (!$this->isConnected()) {
-                       $this->markTestSkipped('No internet connection detected');
-               }
-               $url = 'http://typo3.org/i-do-not-exist-' . time();
-               $report = array();
-               Utility\GeneralUtility::getUrl($url, 0, FALSE, $report);
-               $this->assertContains('404', $report['message'], 'Did not provide the HTTP response header when requesting a failing URL.');
-       }
-
        ///////////////////////////////
        // Tests concerning fixPermissions
        ///////////////////////////////