fix casing

This commit is contained in:
euromark 2013-08-03 04:32:39 +02:00
parent bbd46c9a86
commit a5531f7419
2 changed files with 9 additions and 9 deletions

View file

@ -905,11 +905,11 @@ class Router {
/**
* Sets the full base url that will be used as a prefix for generating
* fully qualified URLs for this application. If not parameters are passed,
* the currently configured value is returned
* the currently configured value is returned.
*
* ## Note:
*
* If you change during runtime the configuration value ``App.fullBaseURL``
* If you change the configuration value ``App.fullBaseUrl`` during runtime
* and expect the router to produce links using the new setting, you are
* required to call this method passing such value again.
*

View file

@ -49,16 +49,16 @@ class RouterTest extends CakeTestCase {
public function tearDown() {
parent::tearDown();
CakePlugin::unload();
Router::fullbaseURL('');
Router::fullBaseUrl('');
Configure::write('App.fullBaseUrl', 'http://localhost');
}
/**
* testFullBaseURL method
* testFullBaseUrl method
*
* @return void
*/
public function testFullBaseURL() {
public function testFullBaseUrl() {
$this->assertRegExp('/^http(s)?:\/\//', Router::url('/', true));
$this->assertRegExp('/^http(s)?:\/\//', Router::url(null, true));
$this->assertRegExp('/^http(s)?:\/\//', Router::url(array('full_base' => true)));
@ -66,16 +66,16 @@ class RouterTest extends CakeTestCase {
}
/**
* Tests that the base URL can be changed at runtime
* Tests that the base URL can be changed at runtime.
*
* @return void
*/
public function testBaseURL() {
public function testBaseUrl() {
$this->assertEquals(FULL_BASE_URL, Router::fullBaseUrl());
Router::fullbaseURL('http://example.com');
Router::fullBaseUrl('http://example.com');
$this->assertEquals('http://example.com/', Router::url('/', true));
$this->assertEquals('http://example.com', Configure::read('App.fullBaseUrl'));
Router::fullbaseURL('https://example.com');
Router::fullBaseUrl('https://example.com');
$this->assertEquals('https://example.com/', Router::url('/', true));
$this->assertEquals('https://example.com', Configure::read('App.fullBaseUrl'));
}