From 001b60bb69a4933eeaa7f3ddda088269d78c13d7 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 1 Dec 2016 18:56:14 -0800 Subject: [PATCH] CRM_Utils_HttpClientTest - Use special purpose hostnames This test issues a few real HTTP requests which are supposed to succeed or fail in a prescribed way. However, the examples were chosen for expedience and leached off other/unrelated sites... but this tends to break from time-to-time (when the example system goes to HTTPS-only or changes their content). With this patch, all the examples point to dedicated sites which are purpose-built for supporting integration tests. --- tests/phpunit/CRM/Utils/HttpClientTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/CRM/Utils/HttpClientTest.php b/tests/phpunit/CRM/Utils/HttpClientTest.php index 8992d8b099..4d1b1bf2ca 100644 --- a/tests/phpunit/CRM/Utils/HttpClientTest.php +++ b/tests/phpunit/CRM/Utils/HttpClientTest.php @@ -6,12 +6,12 @@ */ class CRM_Utils_HttpClientTest extends CiviUnitTestCase { - const VALID_HTTP_URL = 'http://sandbox.civicrm.org/'; - const VALID_HTTP_REGEX = '/