CRM-14528 http test returned 301 redirect to https://civicrm.org
authorAndrew Hunt <andrew@aghstrategies.com>
Sun, 27 Apr 2014 20:56:59 +0000 (16:56 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Sun, 27 Apr 2014 21:02:15 +0000 (17:02 -0400)
----------------------------------------
* CRM-14528: CRM_Utils_HttpClientTest gets redirect instead of expected file
  https://issues.civicrm.org/jira/browse/CRM-14528

tests/phpunit/CRM/Utils/HttpClientTest.php

index f1085de95b39191999ba7033ee34ad8ff9c1a670..445f271bb26d798c567decd001a0fd6900ee091d 100644 (file)
@@ -2,8 +2,8 @@
 require_once 'CiviTest/CiviUnitTestCase.php';
 class CRM_Utils_HttpClientTest extends CiviUnitTestCase {
 
-  const VALID_HTTP_URL = 'http://civicrm.org/INSTALL.mysql.txt';
-  const VALID_HTTP_REGEX = '/MySQL/';
+  const VALID_HTTP_URL = 'http://sandbox.civicrm.org/';
+  const VALID_HTTP_REGEX = '/<html/';
   const VALID_HTTPS_URL = 'https://civicrm.org/INSTALL.mysql.txt';
   const VALID_HTTPS_REGEX = '/MySQL/';
   const SELF_SIGNED_HTTPS_URL = 'https://self-signed.onebitwise.com:4443/';