mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22: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']);
|
$this->assertEquals(['index', 'blog', 'test'], $result['module']);
|
||||||
|
|
||||||
Route::bind('\app\index\controller', 'namespace');
|
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');
|
Route::bind('\app\index\controller\Blog', 'class');
|
||||||
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\blog', 'read']], Route::check($request, 'read'));
|
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\Blog', 'read']], Route::check($request, 'read'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDomain()
|
public function testDomain()
|
||||||
|
|||||||
Reference in New Issue
Block a user