Esempio n. 1
0
 public function testAmOnSubdomain()
 {
     $this->module->_reconfigure(array('url' => 'http://google.com'));
     $this->module->amOnSubdomain('user');
     $this->assertEquals('http://user.google.com', $this->module->_getUrl());
     $this->module->_reconfigure(array('url' => 'http://www.google.com'));
     $this->module->amOnSubdomain('user');
     $this->assertEquals('http://user.google.com', $this->module->_getUrl());
 }
 public function testChangeDomains()
 {
     $this->mockResponse();
     $this->module->amOnSubdomain('user');
     $this->module->amOnPage('/form1');
     $this->assertEquals('http://user.localhost:8000/form1', $this->module->client->getHistory()->current()->getUri());
 }