summaryrefslogtreecommitdiff
path: root/includes/tests/bootstrap.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-07-02 20:05:11 +0000
committerDries Buytaert <dries@buytaert.net>2008-07-02 20:05:11 +0000
commitfe06b4ccd8faa23ebc2b67147fc9064b785a675b (patch)
tree18322723050ef42cadd08614886c350116ef5731 /includes/tests/bootstrap.test
parentca144061cb72903c7f9e78286f964c41acc51bfe (diff)
downloadbrdo-fe06b4ccd8faa23ebc2b67147fc9064b785a675b.tar.gz
brdo-fe06b4ccd8faa23ebc2b67147fc9064b785a675b.tar.bz2
- Patch #276581 by catch: wrote missing tests for contact module and simplified contact module thanks to that. Also removed some whitespace.
Diffstat (limited to 'includes/tests/bootstrap.test')
-rw-r--r--includes/tests/bootstrap.test14
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/tests/bootstrap.test b/includes/tests/bootstrap.test
index beb94edf0..4b2cf3089 100644
--- a/includes/tests/bootstrap.test
+++ b/includes/tests/bootstrap.test
@@ -24,14 +24,14 @@ class BootstrapIPAddressTestCase extends DrupalWebTestCase {
$this->forwarded_ip = '127.0.0.3';
$this->cluster_ip = '127.0.0.4';
$this->untrusted_ip = '0.0.0.0';
-
+
$_SERVER['REMOTE_ADDR'] = $this->remote_ip;
unset($_SERVER['HTTP_X_FORWARDED_FOR']);
unset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']);
-
+
parent::setUp();
}
-
+
/**
* Implementation of tearDown().
*/
@@ -49,14 +49,14 @@ class BootstrapIPAddressTestCase extends DrupalWebTestCase {
ip_address(true) == $this->remote_ip,
t('Got remote IP address')
);
-
+
// Proxy forwarding on but no proxy addresses defined.
variable_set('reverse_proxy', 1);
$this->assertTrue(
ip_address(true) == $this->remote_ip,
t('Proxy forwarding without trusted proxies got remote IP address')
);
-
+
// Proxy forwarding on and proxy address not trusted.
variable_set('reverse_proxy_addresses', array($this->proxy_ip));
$_SERVER['REMOTE_ADDR'] = $this->untrusted_ip;
@@ -71,8 +71,8 @@ class BootstrapIPAddressTestCase extends DrupalWebTestCase {
$this->assertTrue(
ip_address(true) == $this->forwarded_ip,
t('Proxy forwarding with trusted proxy got forwarded IP address')
- );
-
+ );
+
// Cluster environment.
$_SERVER['HTTP_X_CLUSTER_CLIENT_IP'] = $this->cluster_ip;
$this->assertTrue(