diff --git a/tests/TestCase/Routing/RouterTest.php b/tests/TestCase/Routing/RouterTest.php
index <HASH>..<HASH> 100644
--- a/tests/TestCase/Routing/RouterTest.php
+++ b/tests/TestCase/Routing/RouterTest.php
@@ -98,6 +98,29 @@ class RouterTest extends TestCase
     }
 
     /**
+     * Test that Router used the correct url including base path for requesting current actions.
+     *
+     * @return void
+     */
+    public function testCurrentUrlWithBasePath()
+    {
+        Router::fullBaseUrl('http://example.com');
+        $request = new Request();
+        $request->addParams([
+            'action' => 'view',
+            'plugin' => null,
+            'controller' => 'pages',
+            'pass' => ['1']
+        ]);
+        $request->base = '/cakephp';
+        $request->here = '/cakephp/pages/view/1';
+        Router::setRequestInfo($request);
+        $this->assertEquals('http://example.com/cakephp/pages/view/1', Router::url(null, true));
+        $this->assertEquals('/cakephp/pages/view/1', Router::url());
+
+    }
+
+    /**
      * testRouteDefaultParams method
      *
      * @return void
Test for current full url with a base path.