mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进自动路由标识生成 支持不同的路由规则 指向同一个路由标识,改进Url自动生成对路由标识的支持
This commit is contained in:
@@ -56,7 +56,7 @@ class urlTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
public function testBuildMethod()
|
||||
{
|
||||
Route::get('blog/:id', ['\app\index\controller\blog', 'read']);
|
||||
Route::get('blog/:id', '\app\index\controller\blog@read');
|
||||
$this->assertEquals('/blog/10.html', Url::build('\app\index\controller\blog\read', 'id=10', 'html'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user