function testDefaultRoute() { $url_writer = $this->withRequestTo('/user'); $this->assertEquals('http://localhost/user/show/1', default_url(array('action' => 'show', 'id' => '1'))); }
function current_default_url() { $current_url = current_url(); return default_url($current_url); }