mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正单元测试
This commit is contained in:
@@ -257,10 +257,10 @@ class routeTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(['index', 'blog', 'test'], $result['module']);
|
||||
|
||||
Route::bind('\app\index\controller', 'namespace');
|
||||
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\blog', 'read']], Route::check($request, 'blog/read'));
|
||||
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\Blog', 'read']], Route::check($request, 'blog/read'));
|
||||
|
||||
Route::bind('\app\index\controller\blog', 'class');
|
||||
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\blog', 'read']], Route::check($request, 'read'));
|
||||
Route::bind('\app\index\controller\Blog', 'class');
|
||||
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\Blog', 'read']], Route::check($request, 'read'));
|
||||
}
|
||||
|
||||
public function testDomain()
|
||||
|
||||
Reference in New Issue
Block a user