Beispiel #1
0
 /**
  * @todo Implement testGetOverwrite().
  */
 public function testGetAndSetRedirectUrl()
 {
     $this->saveFactoryState();
     $newDbo = $this->getMock('test');
     JFactory::$database =& $newDbo;
     $this->object = JInstaller::getInstance();
     $this->object->setRedirectUrl('http://www.example.com');
     $this->assertThat($this->object->getRedirectUrl(), $this->equalTo('http://www.example.com'), 'Get or Set Redirect Url failed');
     $this->restoreFactoryState();
 }
	/**
	 * Test...
	 *
	 * @covers  JInstaller::setRedirectUrl
	 * @covers  JInstaller::getRedirectUrl
	 *
	 * @return void
	 */
	public function testGetAndSetRedirectUrl()
	{
		$this->object->setRedirectUrl('http://www.example.com');

		$this->assertThat(
			$this->object->getRedirectUrl(),
			$this->equalTo('http://www.example.com'),
			'Get or Set Redirect Url failed'
		);
	}