function testHostnameResolves()
{
- $ip = gethostbyname(FORGE_HOSTNAME);
- $this->assertNotEquals(FORGE_HOSTNAME, $ip);
+ $ip = gethostbyname(HOST);
+ $this->assertNotEquals(HOST, $ip);
}
// resolving the hostname doesn't work under phpunit. If
// this fails, the hostname and IP address should be
// different and the WSDL retrieval should work
- $ip = gethostbyname(FORGE_HOSTNAME);
- if ($ip != FORGE_HOSTNAME)
+ $ip = gethostbyname(HOST);
+ if ($ip != HOST)
{
// Instantiate the SOAP client with WSDL
// try {
// see comments in SoapLoginProcess:setup() for details about this
- $ip = gethostbyname(FORGE_HOSTNAME);
- if ($ip != FORGE_HOSTNAME)
+ $ip = gethostbyname(HOST);
+ if ($ip != HOST)
{
$this->soapclient = new SoapClient(WSDL_URL,
define ('SELENIUM_RC_HOST', 'localhost');
// The forge's hostname
-define ('FORGE_HOSTNAME', 'test.local');
+define ('HOST', 'centos52.local');
// Base URL where FusionForge is installed
+define ('ROOT', '');
define ('BASE', '');
// Database connection parameters.
// These are deduced from the previous definitions.
// URL to access the application
-define ('URL', 'http://'.FORGE_HOSTNAME.'/');
+define ('URL', 'http://'.HOST.'/');
// WSDL of the forges SOAP API
define ('WSDL_URL', URL.'soap/index.php?wsdl');