assertUrlRedirect('http://'.$this->getSourceDomain().'',$this->getDestinationURL()); } /** * Test source domain with HTTPS:// redirects correctly to the destination URL **/ public function testHttps(){ $this->assertUrlRedirect('https://'.$this->getSourceDomain().'',$this->getDestinationURL()); } /** * Test source domain with HTTP://WWW. redirects correctly to the destination URL **/ public function testHttpWww(){ $this->assertUrlRedirect('http://www.'.$this->getSourceDomain().'',$this->getDestinationURL()); } /** * Test source domain with HTTPS://www. redirects correctly to the destination URL **/ public function testHttpsWww(){ $this->assertUrlRedirect('https://www.'.$this->getSourceDomain().'',$this->getDestinationURL()); } /** * Test source domain with HTTP:// and a trailing slash redirects correctly to the destination URL **/ public function testHttpSlash(){ $this->assertUrlRedirect('http://'.$this->getSourceDomain().'/',$this->getDestinationURL()); } /** * Test source domain with HTTPS:// and a trailing slash redirects correctly to the destination URL **/ public function testHttpsSlash(){ $this->assertUrlRedirect('https://'.$this->getSourceDomain().'/',$this->getDestinationURL()); } /** * Test source domain with HTTP://www. and a trailing slash redirects correctly to the destination URL **/ public function testHttpWwwSlash(){ $this->assertUrlRedirect('http://www.'.$this->getSourceDomain().'/',$this->getDestinationURL()); } /** * Test source domain with HTTPS://www. and a trailing slash redirects correctly to the destination URL **/ public function testHttpsWwwSlash(){ $this->assertUrlRedirect('https://www.'.$this->getSourceDomain().'/',$this->getDestinationURL()); } }