Permalink
Browse files

fix casing

  • Loading branch information...
1 parent bbd46c9 commit a5531f7419021c5c598aa8d37f985a0bacdc2666 @dereuromark dereuromark committed Aug 3, 2013
Showing with 9 additions and 9 deletions.
  1. +2 −2 lib/Cake/Routing/Router.php
  2. +7 −7 lib/Cake/Test/Case/Routing/RouterTest.php
@@ -905,11 +905,11 @@ public static function url($url = null, $full = false) {
/**
* 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.
*
@@ -49,33 +49,33 @@ public function setUp() {
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)));
$this->assertSame(FULL_BASE_URL . '/', Router::url(array('full_base' => true)));
}
/**
- * 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'));
}

1 comment on commit a5531f7

Member

ADmad commented on a5531f7 Aug 3, 2013

Thanks, search / replace failed on me 😛

Please sign in to comment.