Merge pull request #11010 from seamuslee001/CRM-21206
[civicrm-core.git] / tests / phpunit / CRM / Utils / HttpClientTest.php
index fe0fcd6a39055affe7b1033e0cec4d35f8cba525..4d1b1bf2cab63dec344b9528bc8a14202733ecb5 100644 (file)
@@ -1,17 +1,17 @@
 <?php
-require_once 'CiviTest/CiviUnitTestCase.php';
 
 /**
  * Class CRM_Utils_HttpClientTest
+ * @group headless
  */
 class CRM_Utils_HttpClientTest extends CiviUnitTestCase {
 
-  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/';
-  const SELF_SIGNED_HTTPS_REGEX = '/self-signed/';
+  const VALID_HTTP_URL = 'http://httpclienttest-http.civicrm.org/index.html';
+  const VALID_HTTP_REGEX = '/This is httpclienttest-http\./';
+  const VALID_HTTPS_URL = 'https://httpclienttest-https.civicrm.org/index.html';
+  const VALID_HTTPS_REGEX = '/This is httpclienttest-https\./';
+  const SELF_SIGNED_HTTPS_URL = 'https://httpclienttest-selfsign.civicrm.org:4433/index.html';
+  const SELF_SIGNED_HTTPS_REGEX = '/This is httpclienttest-selfsign\./';
 
   /**
    * @var string path to which we can store temp file